Lines Matching refs:allOK

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