VirtualBox

Changeset 24505 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 9, 2009 1:47:06 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54598
Message:

VBoxManage: no toggle mode (on/off) required for --forceunmount

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r24504 r24505  
    361361                 "                             --medium <none|emptydrive|uuid|filename|host:<drive>>]\n"
    362362                 "                            [--passthrough <on|off>]\n"
    363                  "                            [--forceunmount <on|off>]\n"
     363                 "                            [--forceunmount]\n"
    364364                 "\n");
    365365    }
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp

    r24504 r24505  
    5555    { "--type",           't', RTGETOPT_REQ_STRING },
    5656    { "--passthrough",    'h', RTGETOPT_REQ_STRING },
    57     { "--forceunmount",   'f', RTGETOPT_REQ_BOOL_ONOFF },
     57    { "--forceunmount",   'f', RTGETOPT_REQ_NOTHING },
    5858};
    5959
     
    138138            }
    139139
    140             case 'f':   // force unmount medium during runtime <on|off>
    141             {
    142                 fForceUnmount = ValueUnion.f;
     140            case 'f':   // force unmount medium during runtime
     141            {
     142                fForceUnmount = true;
    143143                break;
    144144            }
Note: See TracChangeset for help on using the changeset viewer.

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