Lines Matching refs:myDisk

40    myDisk = NULL;  in BasicMBRData()
53 myDisk = NULL; in BasicMBRData()
69 delete myDisk; in ~BasicMBRData()
88 myDisk = new DiskIO; in operator =()
89 if (myDisk == NULL) { in operator =()
93 if (orig.myDisk != NULL) in operator =()
94 myDisk->OpenForRead(orig.myDisk->GetName()); in operator =()
113 if (myDisk == NULL) { in ReadMBRData()
114 myDisk = new DiskIO; in ReadMBRData()
115 if (myDisk == NULL) { in ReadMBRData()
121 if (myDisk->OpenForRead(deviceFilename)) { in ReadMBRData()
122 allOK = ReadMBRData(myDisk); in ReadMBRData()
143 if ((myDisk != NULL) && (myDisk != theDisk) && (canDeleteMyDisk)) { in ReadMBRData()
144 delete myDisk; in ReadMBRData()
148 myDisk = theDisk; in ReadMBRData()
153 if (myDisk->Seek(0)) in ReadMBRData()
154 if (myDisk->Read(&tempMBR, 512)) in ReadMBRData()
187 diskSize = myDisk->DiskSize(&err); in ReadMBRData()
191 blockSize = myDisk->GetBlockSize(); in ReadMBRData()
265 if (myDisk->Seek(offset) == 0) { // seek to EBR record in ReadLogicalParts()
269 if (myDisk->Read(&ebr, 512) != 512) { // Load the data.... in ReadLogicalParts()
327 if (myDisk != NULL) { in WriteMBRData()
328 if (myDisk->OpenForWrite() != 0) { in WriteMBRData()
329 allOK = WriteMBRData(myDisk); in WriteMBRData()
334 myDisk->Close(); in WriteMBRData()
459 myDisk = theDisk; in SetDisk()
539 if (myDisk != NULL) { in CheckForGPT()
540 if (myDisk->OpenForRead() != 0) { in CheckForGPT()
541 if (myDisk->Seek(1)) { in CheckForGPT()
542 myDisk->Read(signature1, 8); in CheckForGPT()
545 if (myDisk->Seek(myDisk->DiskSize(&err) - 1)) { in CheckForGPT()
546 myDisk->Read(signature2, 8); in CheckForGPT()
556 myDisk->Close(); in CheckForGPT()
578 if ((myDisk != NULL) && (myDisk->OpenForWrite())) { in BlankGPTData()
579 if (!((myDisk->Seek(1)) && (myDisk->Write(blank, 512) == 512))) in BlankGPTData()
581 myDisk->Close(); in BlankGPTData()
585 if ((myDisk != NULL) && (myDisk->OpenForWrite())) { in BlankGPTData()
586 if (!((myDisk->Seek(myDisk->DiskSize(&err) - 1)) && in BlankGPTData()
587 (myDisk->Write(blank, 512) == 512))) in BlankGPTData()
589 myDisk->Close(); in BlankGPTData()
593 if ((myDisk != NULL) && (myDisk->OpenForWrite())) { in BlankGPTData()
594 if (!((myDisk->Seek(1)) && (myDisk->Write(blank, 512) == 512))) in BlankGPTData()
596 if (!((myDisk->Seek(myDisk->DiskSize(&err) - 1)) && in BlankGPTData()
597 (myDisk->Write(blank, 512) == 512))) in BlankGPTData()
599 myDisk->Close(); in BlankGPTData()
621 numHeads = myDisk->GetNumHeads(); in ReadCHSGeom()
622 numSecspTrack = myDisk->GetNumSecsPerTrack(); in ReadCHSGeom()
623 diskSize = myDisk->DiskSize(&err); in ReadCHSGeom()
624 blockSize = myDisk->GetBlockSize(); in ReadCHSGeom()