Changeset 38726 in vbox for trunk/src/VBox
- Timestamp:
- Sep 13, 2011 9:10:21 AM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r38525 r38726 690 690 { "--variant", 'm', RTGETOPT_REQ_STRING }, 691 691 { "-variant", 'm', RTGETOPT_REQ_STRING }, 692 { "--uuid", 'u', RTGETOPT_REQ_STRING }, 692 693 }; 693 694 … … 702 703 unsigned uImageFlags = VD_IMAGE_FLAGS_NONE; 703 704 void *pvBuf = NULL; 705 RTUUID uuid; 706 PCRTUUID pUuid = NULL; 704 707 705 708 int c; … … 713 716 switch (c) 714 717 { 718 case 'u': // --uuid 719 if (RT_FAILURE(RTUuidFromStr(&uuid, ValueUnion.psz))) 720 return errorSyntax(USAGE_CONVERTFROMRAW, "Invalid UUID '%s'", ValueUnion.psz); 721 pUuid = &uuid; 722 break; 715 723 case 'o': // --format 716 724 format = ValueUnion.psz; … … 809 817 LCHS.cSectors = 0; 810 818 rc = VDCreateBase(pDisk, format, dstfilename, cbFile, 811 uImageFlags, pszComment, &PCHS, &LCHS, NULL,819 uImageFlags, pszComment, &PCHS, &LCHS, pUuid, 812 820 VD_OPEN_FLAGS_NORMAL, NULL, NULL); 813 821 if (RT_FAILURE(rc)) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r38191 r38726 543 543 " [--format VDI|VMDK|VHD]\n" 544 544 " [--variant Standard,Fixed,Split2G,Stream,ESX]\n" 545 " [--uuid <uuid>\n>" 545 546 #ifndef RT_OS_WINDOWS 546 547 "VBoxManage convertfromraw stdin <outputfile> <bytes>\n" 547 548 " [--format VDI|VMDK|VHD]\n" 548 549 " [--variant Standard,Fixed,Split2G,Stream,ESX]\n" 550 " [--uuid <uuid>\n>" 549 551 #endif 550 552 "\n");
Note:
See TracChangeset
for help on using the changeset viewer.