Changeset 17402 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 5, 2009 2:39:05 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r16873 r17402 226 226 filepath = a->argv[0]; 227 227 CHECK_ERROR(a->virtualBox, FindHardDisk(filepath, hardDisk.asOutParam())); 228 if (FAILED(rc)) 229 return 1; 228 230 } 229 231 … … 237 239 238 240 if (a->argc <= 2) 239 return errorArgument("Missing argument tofor settype");241 return errorArgument("Missing argument for settype"); 240 242 241 243 type = a->argv[2]; … … 267 269 else 268 270 return errorArgument("Hard disk image not registered"); 271 } 272 else if (strcmp(a->argv[1], "autoreset") == 0) 273 { 274 char *onOff = NULL; 275 276 if (a->argc <= 2) 277 return errorArgument("Missing argument for autoreset"); 278 279 onOff = a->argv[2]; 280 281 if (strcmp(onOff, "on") == 0) 282 { 283 CHECK_ERROR(hardDisk, COMSETTER(AutoReset)(TRUE)); 284 } 285 else if (strcmp(onOff, "off") == 0) 286 { 287 CHECK_ERROR(hardDisk, COMSETTER(AutoReset)(FALSE)); 288 } 289 else 290 { 291 return errorArgument("Invalid autoreset argument '%s' specified", 292 Utf8Str(onOff).raw()); 293 } 269 294 } 270 295 else if (strcmp(a->argv[1], "compact") == 0) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r17323 r17402 331 331 RTPrintf("VBoxManage modifyhd <uuid>|<filename>\n" 332 332 " settype normal|writethrough|immutable |\n" 333 " autoreset on|off |\n" 333 334 " compact\n" 334 335 "\n");
Note:
See TracChangeset
for help on using the changeset viewer.