Changeset 35238 in vbox
- Timestamp:
- Dec 20, 2010 11:18:40 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r33595 r35238 178 178 ? " createrawvmdk -filename <filename> -rawdisk <diskname>\n" 179 179 " [-partitions <list of partition numbers> [-mbr <filename>] ]\n" 180 " [-re gister] [-relative]\n"180 " [-relative]\n" 181 181 " Creates a new VMDK image which gives access to an entite host disk (if\n" 182 182 " the parameter -partitions is not specified) or some partitions of a\n" … … 188 188 " On Linux host the parameter -relative causes a VMDK file to be created\n" 189 189 " which refers to individual partitions instead to the entire disk.\n" 190 " Optionally the created image can be immediately registered.\n"191 190 " The necessary partition numbers can be queried with\n" 192 191 " VBoxManage internalcommands listpartitions\n" … … 918 917 Utf8Str rawdisk; 919 918 const char *pszPartitions = NULL; 920 bool fRegister = false;921 919 bool fRelative = false; 922 920 … … 964 962 i++; 965 963 pszPartitions = argv[i]; 966 }967 else if (strcmp(argv[i], "-register") == 0)968 {969 fRegister = true;970 964 } 971 965 #ifdef RT_OS_LINUX … … 1479 1473 } 1480 1474 1481 if (fRegister)1482 {1483 ComPtr<IMedium> hardDisk;1484 CHECK_ERROR(aVirtualBox, OpenMedium(Bstr(filename).raw(),1485 DeviceType_HardDisk,1486 AccessMode_ReadWrite,1487 hardDisk.asOutParam()));1488 }1489 1490 1475 return SUCCEEDED(rc) ? 0 : 1; 1491 1476
Note:
See TracChangeset
for help on using the changeset viewer.

