VirtualBox

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

VBoxManage storageattach: make the --device parameter optional

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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