Home | History | Annotate | Download | only in gptfdisk

Lines Matching refs:partNum

65    int partNum = 0, newPartNum = -1, saveNonGPT = 1, retval = 0, pretend = 0;
74 {"attributes", 'A', POPT_ARG_STRING, &attributeOperation, 'A', "operate on partition attributes", "list|[partnum:show|or|nand|xor|=|set|clear|toggle|get[:bitnum|hexbitmask]]"},
77 {"change-name", 'c', POPT_ARG_STRING, &partName, 'c', "change partition's name", "partnum:name"},
79 {"delete", 'd', POPT_ARG_INT, &deletePartNum, 'd', "delete a partition", "partnum"},
87 {"hybrid", 'h', POPT_ARG_STRING, &hybrids, 'h', "create hybrid MBR", "partnum[:partnum...]"},
88 {"info", 'i', POPT_ARG_INT, &infoPartNum, 'i', "show detailed information on partition", "partnum"},
91 {"gpttombr", 'm', POPT_ARG_STRING, &mbrParts, 'm', "convert GPT to MBR", "partnum[:partnum...]"},
92 {"new", 'n', POPT_ARG_STRING, &newPartInfo, 'n', "create new partition", "partnum:start:end"},
93 {"largest-new", 'N', POPT_ARG_INT, &largestPartNum, 'N', "create largest possible new partition", "partnum"},
97 {"transpose", 'r', POPT_ARG_STRING, &twoParts, 'r', "transpose two partitions", "partnum:partnum"},
101 {"typecode", 't', POPT_ARG_STRING, &typeCode, 't', "change partition type code", "partnum:{hexcode|GUID}"},
102 {"transform-bsd", 'T', POPT_ARG_INT, &bsdPartNum, 'T', "transform BSD disklabel partition to GPT", "partnum"},
103 {"partition-guid", 'u', POPT_ARG_STRING, &partGUID, 'u', "set partition GUID", "partnum:guid"},
162 partNum = (int) GetInt(attributeOperation, 1) - 1;
163 if (partNum < 0)
164 partNum = newPartNum;
165 if ((partNum >= 0) && (partNum < (int) GetNumParts())) {
166 switch (ManageAttributes(partNum, GetString(attributeOperation, 2),
180 cerr << "Error: Invalid partition number " << partNum + 1 << "\n";
197 partNum = (int) GetInt(partName, 1) - 1;
198 if (partNum < 0)
199 partNum = newPartNum;
200 cout << "partNum is " << partNum << "\n";
201 if ((partNum >= 0) && (partNum < (int) GetNumParts())) {
204 if (SetName(partNum, (UnicodeString) name.c_str())) {
207 cerr << "Unable to set partition " << partNum + 1
359 partNum = (int) GetInt(typeCode, 1) - 1;
360 if (partNum < 0)
361 partNum = newPartNum;
362 if ((partNum >= 0) && (partNum < (int) GetNumParts())) {
365 (ChangePartType(partNum, typeHelper))) {
368 cerr << "Could not change partition " << partNum + 1
383 partNum = (int) GetInt(partGUID, 1) - 1;
384 if (partNum < 0)
385 partNum = newPartNum;
386 if ((partNum >= 0) && (partNum < (int) GetNumParts())) {
387 SetPartitionGUID(partNum, GetString(partGUID, 2).c_str());