Changeset 29480 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- May 14, 2010 3:24:19 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r29465 r29480 447 447 " [--sataideemulation<1-4> <1-30>]\n" 448 448 " [--sataportcount <1-30>]\n" 449 " [-- iobackend Buffered|Unbuffered]\n"449 " [--hostiocache on|off]\n" 450 450 " [--remove]\n" 451 451 "\n"); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
r28800 r29480 653 653 { "--sataportcount", 'p', RTGETOPT_REQ_UINT32 }, 654 654 { "--remove", 'r', RTGETOPT_REQ_NOTHING }, 655 { "-- iobackend",'i', RTGETOPT_REQ_STRING },655 { "--hostiocache", 'i', RTGETOPT_REQ_STRING }, 656 656 }; 657 657 … … 663 663 const char *pszBusType = NULL; 664 664 const char *pszCtlType = NULL; 665 const char *psz IoBackend= NULL;665 const char *pszHostIOCache = NULL; 666 666 ULONG satabootdev = ~0U; 667 667 ULONG sataidedev = ~0U; … … 732 732 case 'i': 733 733 { 734 psz IoBackend= ValueUnion.psz;734 pszHostIOCache = ValueUnion.psz; 735 735 break; 736 736 } … … 921 921 } 922 922 923 if ( psz IoBackend923 if ( pszHostIOCache 924 924 && SUCCEEDED(rc)) 925 925 { 926 927 928 929 930 if (!RTStrICmp(pszIoBackend, "buffered"))931 932 CHECK_ERROR(ctl, COMSETTER(IoBackend)(IoBackendType_Buffered));933 934 else if (!RTStrICmp(pszIoBackend, "unbuffered"))935 936 CHECK_ERROR(ctl, COMSETTER(IoBackend)(IoBackendType_Unbuffered));937 938 939 940 errorArgument("Invalid --type argument '%s'", pszIoBackend);941 942 926 ComPtr<IStorageController> ctl; 927 928 CHECK_ERROR(machine, GetStorageControllerByName(Bstr(pszCtl), ctl.asOutParam())); 929 930 if (!RTStrICmp(pszHostIOCache, "on")) 931 { 932 CHECK_ERROR(ctl, COMSETTER(UseHostIOCache)(TRUE)); 933 } 934 else if (!RTStrICmp(pszHostIOCache, "off")) 935 { 936 CHECK_ERROR(ctl, COMSETTER(UseHostIOCache)(FALSE)); 937 } 938 else 939 { 940 errorArgument("Invalid --hostiocache argument '%s'", pszHostIOCache); 941 rc = E_FAIL; 942 } 943 943 } 944 944 }
Note:
See TracChangeset
for help on using the changeset viewer.