Lines Matching refs:backupFile
1176 DiskIO backupFile; in SaveGPTBackup() local
1178 if (backupFile.OpenForWrite(filename)) { in SaveGPTBackup()
1185 protectiveMBR.WriteMBRData(&backupFile); in SaveGPTBackup()
1190 backupFile.OpenForWrite(); in SaveGPTBackup()
1191 allOK = SaveHeader(&mainHeader, backupFile, 1); in SaveGPTBackup()
1195 allOK = SaveHeader(&secondHeader, backupFile, 2); in SaveGPTBackup()
1198 allOK = SavePartitionTable(backupFile, 3); in SaveGPTBackup()
1206 backupFile.Close(); in SaveGPTBackup()
1261 DiskIO backupFile; in LoadGPTBackup() local
1263 if (backupFile.OpenForRead(filename)) { in LoadGPTBackup()
1265 protectiveMBR.ReadMBRData(&backupFile, 0); // 0 = don't check block size in LoadGPTBackup()
1268 LoadHeader(&mainHeader, backupFile, 1, &mainCrcOk); in LoadGPTBackup()
1274 shortBackup = ((backupFile.DiskSize(&err) * backupFile.GetBlockSize()) == in LoadGPTBackup()
1280 LoadHeader(&secondHeader, backupFile, 2, &secondCrcOk); in LoadGPTBackup()
1301 if (!LoadPartitionTable(mainHeader, backupFile, (uint64_t) (3 - shortBackup))) in LoadGPTBackup()