Home | History | Annotate | Download | only in gptfdisk

Lines Matching defs:allOK

679    int err, allOK = 1;
682 if (allOK && myDisk.OpenForRead(deviceFilename)) {
690 return allOK;
738 int err, allOK = 1;
754 } else allOK = 0; // if
756 if (allOK && myDisk.OpenForRead(deviceFilename)) {
785 allOK = 0;
790 if (allOK)
795 allOK = 0;
797 return (allOK);
803 int allOK, validHeaders, loadedTable = 1;
805 allOK = LoadHeader(&mainHeader, myDisk, 1, &mainCrcOk);
808 allOK = LoadHeader(&secondHeader, myDisk, mainHeader.backupLBA, &secondCrcOk) && allOK;
810 allOK = LoadHeader(&secondHeader, myDisk, diskSize - UINT64_C(1), &secondCrcOk) && allOK;
817 if (!allOK)
853 allOK = 0;
861 allOK = 0;
878 allOK = allOK && LoadSecondTableAsMain();
893 return allOK;
918 int allOK = 1;
924 allOK = 0;
933 if (allOK && (numParts != tempHeader.numParts) && *crcOk) {
934 allOK = SetGPTSize(tempHeader.numParts, 0);
938 return allOK;
990 int allOK = 0;
1006 allOK = (newCRC == header->partitionEntriesCRC);
1014 allOK = 0;
1019 return allOK;
1029 int allOK = 1, syncIt = 1;
1037 allOK = 0;
1050 allOK = 0;
1087 allOK = 0;
1103 if ((allOK) && (!quiet)) {
1110 allOK = 0;
1115 if (allOK) {
1118 allOK = SavePartitionTable(myDisk, secondHeader.partitionEntriesLBA);
1119 if (!allOK) {
1126 allOK = allOK && SaveHeader(&secondHeader, myDisk, mainHeader.backupLBA);
1129 allOK = allOK && SavePartitionTable(myDisk, mainHeader.partitionEntriesLBA);
1132 allOK = allOK && SaveHeader(&mainHeader, myDisk, 1);
1135 allOK = allOK && protectiveMBR.WriteMBRData(&myDisk);
1148 if (allOK) { // writes completed OK
1159 allOK = 0;
1165 return (allOK);
1175 int allOK = 1;
1188 if (allOK) {
1191 allOK = SaveHeader(&mainHeader, backupFile, 1);
1192 } // if (allOK)
1194 if (allOK)
1195 allOK = SaveHeader(&secondHeader, backupFile, 2);
1197 if (allOK)
1198 allOK = SavePartitionTable(backupFile, 3);
1200 if (allOK) { // writes completed OK
1209 allOK = 0;
1211 return allOK;
1220 int littleEndian, allOK = 1;
1227 allOK = 0;
1228 } else allOK = 0; // if (disk.Seek()...)
1231 return allOK;
1240 int littleEndian, allOK = 1;
1247 allOK = 0;
1250 } else allOK = 0; // if (myDisk.Seek()...)
1251 return allOK;
1259 int allOK = 1, val, err;
1305 allOK = 0;
1308 if (allOK == 0) {
1314 allOK = 0;
1318 return allOK;
1329 int sum, tableSize, allOK = 1;
1338 allOK = 0;
1341 allOK = 0;
1344 allOK = 0;
1352 if (allOK) {
1356 allOK = 0;
1360 allOK = 0;
1361 if (allOK) {
1366 allOK = 0;
1370 allOK = 0;
1371 if (allOK) {
1374 allOK = 0;
1385 return (allOK);
1391 int allOK;
1396 allOK = myDisk.OpenForWrite() && myDisk.Seek(0) && (myDisk.Write(blankSector, 512) == 512);
1398 if (!allOK)
1400 return allOK;
1639 int allOK = 1;
1643 allOK = 0;
1647 allOK = 0;
1649 if (allOK && (partitions[gptPart].GetLastLBA() == UINT64_C(0))) {
1651 allOK = 0;
1653 if (allOK && (partitions[gptPart].GetFirstLBA() <= UINT32_MAX) &&
1663 if (allOK) // Display only if "else" triggered by out-of-bounds condition
1666 allOK = 0;
1668 return allOK;
1687 int allOK = 1;
1713 allOK = 0;
1737 allOK = 0;
1742 return (allOK);
1816 int allOK = 1;
1824 } else allOK = 0; // partition numbers are valid
1825 return allOK;
2420 int allOK = 1;
2424 allOK = 0;
2428 allOK = 0;
2432 allOK = 0;
2436 allOK = 0;
2440 allOK = 0;
2444 allOK = 0;
2448 allOK = 0;
2452 allOK = 0;
2456 allOK = 0;
2460 allOK = 0;
2462 return (allOK);