Lines Matching defs:rawdisk

176         ? "  listpartitions -rawdisk <diskname>\n"
181 ? " createrawvmdk -filename <filename> -rawdisk <diskname>\n"
1062 Utf8Str rawdisk;
1067 if (strcmp(argv[i], "-rawdisk") == 0)
1074 rawdisk = argv[i];
1082 if (rawdisk.isEmpty())
1083 return errorSyntax(USAGE_LISTPARTITIONS, "Mandatory parameter -rawdisk missing");
1086 int vrc = RTFileOpen(&hRawFile, rawdisk.c_str(), RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_WRITE);
1142 Utf8Str rawdisk;
1172 else if (strcmp(argv[i], "-rawdisk") == 0)
1179 rawdisk = argv[i];
1202 if (rawdisk.isEmpty())
1203 return errorSyntax(USAGE_CREATERAWVMDK, "Mandatory parameter -rawdisk missing");
1211 int vrc = RTFileOpen(&hRawFile, rawdisk.c_str(), RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_WRITE);
1214 RTMsgError("Cannot open the raw disk '%s': %Rrc", rawdisk.c_str(), vrc);
1243 RTMsgError("File '%s' is no fixed/removable medium device", rawdisk.c_str());
1267 RTMsgError("Cannot get the geometry of the raw disk '%s': %Rrc", rawdisk.c_str(), vrc);
1300 RTMsgError("Cannot get the size of the raw disk '%s': %Rrc", rawdisk.c_str(), vrc);
1310 RTMsgError("Failed to get size of file '%s': %Rrc", rawdisk.c_str(), vrc);
1322 RTMsgError("File '%s' is no block device", rawdisk.c_str());
1331 rawdisk.c_str(), vrc);
1347 RTMsgError("Cannot get the block size for file '%s': %Rrc", rawdisk.c_str(), vrc);
1355 RTMsgError("Cannot get the block count for file '%s': %Rrc", rawdisk.c_str(), vrc);
1365 RTMsgError("Failed to get size of file '%s': %Rrc", rawdisk.c_str(), vrc);
1371 RTMsgError("File '%s' is neither block device nor regular file", rawdisk.c_str());
1380 rawdisk.c_str(), vrc);
1394 RTMsgError("Cannot get the size of the raw disk '%s': %Rrc", rawdisk.c_str(), vrc);
1403 RTMsgError("Failed to get size of file '%s': %Rrc", rawdisk.c_str(), vrc);
1409 RTMsgError("File '%s' is no block or char device", rawdisk.c_str());
1418 rawdisk.c_str(), vrc);
1432 RTMsgError("Cannot get the block count for file '%s': %Rrc", rawdisk.c_str(), vrc);
1448 RTMsgError("File '%s' is neither character device nor regular file", rawdisk.c_str());
1457 rawdisk.c_str(), vrc);
1465 RTMsgError("Cannot get the size of the raw disk '%s': %Rrc", rawdisk.c_str(), vrc);
1473 RTMsgError("Detected size of raw disk '%s' is %s, an invalid value", rawdisk.c_str(), cbSize);
1485 RawDescriptor.pszRawDisk = rawdisk.c_str();
1523 RTMsgError("Cannot read the partition information from '%s'", rawdisk.c_str());
1557 RTMsgError("Out of memory allocating the partition list for '%s'", rawdisk.c_str());
1573 RTMsgError("Out of memory allocating the partition descriptor for '%s'", rawdisk.c_str());
1581 RTMsgError("Cannot read partition data from raw device '%s': %Rrc", rawdisk.c_str(), vrc);
1615 const char *pszRawName = rawdisk.c_str();
1622 RTMsgError("Out of memory allocating the partition list for '%s'", rawdisk.c_str());
1640 rawdisk.c_str(),
1654 RTStrAPrintf(&psz, "%ss%u", rawdisk.c_str(),