Changeset 36303 in vbox
- Timestamp:
- Mar 17, 2011 12:41:26 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70610
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r36069 r36303 186 186 " The diskname is on Linux e.g. /dev/sda, and on Windows e.g.\n" 187 187 " \\\\.\\PhysicalDrive0).\n" 188 " On Linux host the parameter -relative causes a VMDK file to be created\n" 189 " which refers to individual partitions instead to the entire disk.\n" 188 " On Linux or FreeBSD host the parameter -relative causes a VMDK file to\n" 189 " be created which refers to individual partitions instead to the entire\n" 190 " disk.\n" 190 191 " The necessary partition numbers can be queried with\n" 191 192 " VBoxManage internalcommands listpartitions\n" … … 968 969 pszPartitions = argv[i]; 969 970 } 970 #if def RT_OS_LINUX971 #if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD) 971 972 else if (strcmp(argv[i], "-relative") == 0) 972 973 { 973 974 fRelative = true; 974 975 } 975 #endif /* RT_OS_LINUX */976 #endif /* RT_OS_LINUX || RT_OS_FREEBSD */ 976 977 else 977 978 return errorSyntax(USAGE_CREATERAWVMDK, "Invalid parameter '%s'", argv[i]); … … 1321 1322 if (fRelative) 1322 1323 { 1323 #if def RT_OS_LINUX1324 #if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD) 1324 1325 /* Refer to the correct partition and use offset 0. */ 1325 1326 char *psz; 1326 RTStrAPrintf(&psz, "%s%u", rawdisk.c_str(), 1327 RTStrAPrintf(&psz, 1328 #if defined(RT_OS_LINUX) 1329 "%s%u", 1330 #elif defined(RT_OS_FREEBSD) 1331 "%ss%u", 1332 #endif 1333 rawdisk.c_str(), 1327 1334 partitions.aPartitions[i].uIndex); 1328 1335 if (!psz)
Note:
See TracChangeset
for help on using the changeset viewer.