VirtualBox

Changeset 37925 in vbox


Ignore:
Timestamp:
Jul 13, 2011 3:31:10 PM (13 years ago)
Author:
vboxsync
Message:

VBoxManage storageattach: make the --device parameter optional

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/en_US/user_VBoxManage.xml

    r37900 r37925  
    15681568                            --storagectl <name>
    15691569                            --port <number>
    1570                             --device <number>
     1570                            [--device <number>]
    15711571                            [--type dvddrive|hdd|fdd]
    15721572                            [--medium none|emptydrive|
     
    16271627          <glossdef>
    16281628            <para>The number of the port's device which is to be modified.
    1629             Mandatory.</para>
     1629            Optional. Default value is 0.</para>
    16301630          </glossdef>
    16311631        </glossentry>
  • trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp

    r37596 r37925  
    12541254
    12551255                /** @todo the clipping below isn't 100% accurate, as it should
    1256                  * actually clip to the track size. However that's easier said
     1256                 * actually clip to the track size. However, that's easier said
    12571257                 * than done as figuring out the track size is heuristics. In
    12581258                 * any case the clipping is adjusted later after sorting, to
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r37900 r37925  
    459459                     "                            --storagectl <name>\n"
    460460                     "                            --port <number>\n"
    461                      "                            --device <number>\n"
     461                     "                            [--device <number>]\n"
    462462                     "                            [--type dvddrive|hdd|fdd]\n"
    463463                     "                            [--medium none|emptydrive|\n"
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp

    r37824 r37925  
    7575    HRESULT rc = S_OK;
    7676    ULONG port   = ~0U;
    77     ULONG device = ~0U;
     77    ULONG device = 0;                   /* device is optional, default is 0 */
    7878    bool fForceUnmount = false;
    7979    bool fSetMediumType = false;
     
    288288    if (port == ~0U)
    289289        return errorSyntax(USAGE_STORAGEATTACH, "Port not specified");
    290     if (device == ~0U)
    291         return errorSyntax(USAGE_STORAGEATTACH, "Device not specified");
    292290
    293291    /* get the virtualbox system properties */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette