Lines Matching refs:allOK
684 int err, allOK = 1;
687 if (allOK && myDisk.OpenForRead(deviceFilename)) {
695 return allOK;
743 int err, allOK = 1;
759 } else allOK = 0; // if
761 if (allOK && myDisk.OpenForRead(deviceFilename)) {
790 allOK = 0;
795 if (allOK)
800 allOK = 0;
802 return (allOK);
808 int allOK, validHeaders, loadedTable = 1;
810 allOK = LoadHeader(&mainHeader, myDisk, 1, &mainCrcOk);
813 allOK = LoadHeader(&secondHeader, myDisk, mainHeader.backupLBA, &secondCrcOk) && allOK;
815 allOK = LoadHeader(&secondHeader, myDisk, diskSize - UINT64_C(1), &secondCrcOk) && allOK;
822 if (!allOK)
858 allOK = 0;
866 allOK = 0;
883 allOK = allOK && LoadSecondTableAsMain();
898 return allOK;
923 int allOK = 1;
929 allOK = 0;
938 if (allOK && (numParts != tempHeader.numParts) && *crcOk) {
939 allOK = SetGPTSize(tempHeader.numParts, 0);
943 return allOK;
995 int allOK = 0;
1011 allOK = (newCRC == header->partitionEntriesCRC);
1019 allOK = 0;
1024 return allOK;
1034 int allOK = 1, syncIt = 1;
1042 allOK = 0;
1055 allOK = 0;
1092 allOK = 0;
1108 if ((allOK) && (!quiet)) {
1115 allOK = 0;
1120 if (allOK) {
1123 allOK = SavePartitionTable(myDisk, secondHeader.partitionEntriesLBA);
1124 if (!allOK) {
1131 allOK = allOK && SaveHeader(&secondHeader, myDisk, mainHeader.backupLBA);
1134 allOK = allOK && SavePartitionTable(myDisk, mainHeader.partitionEntriesLBA);
1137 allOK = allOK && SaveHeader(&mainHeader, myDisk, 1);
1140 allOK = allOK && protectiveMBR.WriteMBRData(&myDisk);
1153 if (allOK) { // writes completed OK
1164 allOK = 0;
1170 return (allOK);
1180 int allOK = 1;
1193 if (allOK) {
1196 allOK = SaveHeader(&mainHeader, backupFile, 1);
1197 } // if (allOK)
1199 if (allOK)
1200 allOK = SaveHeader(&secondHeader, backupFile, 2);
1202 if (allOK)
1203 allOK = SavePartitionTable(backupFile, 3);
1205 if (allOK) { // writes completed OK
1214 allOK = 0;
1216 return allOK;
1225 int littleEndian, allOK = 1;
1232 allOK = 0;
1233 } else allOK = 0; // if (disk.Seek()...)
1236 return allOK;
1245 int littleEndian, allOK = 1;
1252 allOK = 0;
1255 } else allOK = 0; // if (myDisk.Seek()...)
1256 return allOK;
1264 int allOK = 1, val, err;
1310 allOK = 0;
1313 if (allOK == 0) {
1319 allOK = 0;
1323 return allOK;
1334 int sum, tableSize, allOK = 1;
1343 allOK = 0;
1346 allOK = 0;
1349 allOK = 0;
1357 if (allOK) {
1361 allOK = 0;
1365 allOK = 0;
1366 if (allOK) {
1371 allOK = 0;
1375 allOK = 0;
1376 if (allOK) {
1379 allOK = 0;
1392 return (allOK);
1398 int allOK;
1403 allOK = myDisk.OpenForWrite() && myDisk.Seek(0) && (myDisk.Write(blankSector, 512) == 512);
1405 if (!allOK)
1407 return allOK;
1646 int allOK = 1;
1650 allOK = 0;
1654 allOK
1656 if (allOK && (partitions[gptPart].GetLastLBA() == UINT64_C(0))) {
1658 allOK = 0;
1660 if (allOK && (partitions[gptPart].GetFirstLBA() <= UINT32_MAX) &&
1670 if (allOK) // Display only if "else" triggered by out-of-bounds condition
1673 allOK = 0;
1675 return allOK;
1694 int allOK = 1;
1720 allOK = 0;
1744 allOK = 0;
1749 return (allOK);
1823 int allOK = 1;
1831 } else allOK = 0; // partition numbers are valid
1832 return allOK;
2427 int allOK = 1;
2431 allOK = 0;
2435 allOK = 0;
2439 allOK = 0;
2443 allOK = 0;
2447 allOK = 0;
2451 allOK = 0;
2455 allOK = 0;
2459 allOK = 0;
2463 allOK = 0;
2467 allOK = 0;
2469 return (allOK);