Changeset 56821 in vbox
- Timestamp:
- Jul 6, 2015 3:07:40 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r56533 r56821 1080 1080 " [--hostiocache on|off]\n" 1081 1081 " [--bootable on|off]\n" 1082 " [--rename <name>]\n" 1082 1083 " [--remove]\n" 1083 1084 "\n", SEP); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
r56118 r56821 947 947 { "--portcount", 'p', RTGETOPT_REQ_UINT32 }, 948 948 { "--remove", 'r', RTGETOPT_REQ_NOTHING }, 949 { "--rename", 'R', RTGETOPT_REQ_STRING }, 949 950 { "--hostiocache", 'i', RTGETOPT_REQ_STRING }, 950 951 { "--bootable", 'b', RTGETOPT_REQ_STRING }, … … 959 960 const char *pszHostIOCache = NULL; 960 961 const char *pszBootable = NULL; 962 const char *pszCtlNewName = NULL; 961 963 ULONG satabootdev = ~0U; 962 964 ULONG sataidedev = ~0U; … … 1000 1002 break; 1001 1003 1004 case 'R': // rename controller 1005 Assert(ValueUnion.psz); 1006 pszCtlNewName = ValueUnion.psz; 1007 break; 1008 1002 1009 case 'i': 1003 1010 pszHostIOCache = ValueUnion.psz; … … 1219 1226 } 1220 1227 } 1228 1229 if ( pszCtlNewName 1230 && SUCCEEDED(rc)) 1231 { 1232 ComPtr<IStorageController> ctl; 1233 1234 CHECK_ERROR(machine, GetStorageControllerByName(Bstr(pszCtl).raw(), 1235 ctl.asOutParam())); 1236 1237 if (SUCCEEDED(rc)) 1238 { 1239 CHECK_ERROR(ctl, COMSETTER(Name)(Bstr(pszCtlNewName).raw())); 1240 } 1241 else 1242 { 1243 errorArgument("Couldn't find the controller with the name: '%s'\n", pszCtl); 1244 rc = E_FAIL; 1245 } 1246 } 1247 1221 1248 } 1222 1249
Note:
See TracChangeset
for help on using the changeset viewer.