• Home
  • Raw
  • Download

Lines Matching refs:myDisk

42    myDisk = NULL;  in BasicMBRData()
64 myDisk = new DiskIO; in BasicMBRData()
65 if (myDisk == NULL) { in BasicMBRData()
69 if (orig.myDisk != NULL) in BasicMBRData()
70 myDisk->OpenForRead(orig.myDisk->GetName()); in BasicMBRData()
85 myDisk = NULL; in BasicMBRData()
101 delete myDisk; in ~BasicMBRData()
121 myDisk = new DiskIO; in operator =()
122 if (myDisk == NULL) { in operator =()
126 if (orig.myDisk != NULL) in operator =()
127 myDisk->OpenForRead(orig.myDisk->GetName()); in operator =()
147 if (myDisk == NULL) { in ReadMBRData()
148 myDisk = new DiskIO; in ReadMBRData()
149 if (myDisk == NULL) { in ReadMBRData()
155 if (myDisk->OpenForRead(deviceFilename)) { in ReadMBRData()
156 allOK = ReadMBRData(myDisk); in ReadMBRData()
177 if ((myDisk != NULL) && (myDisk != theDisk) && (canDeleteMyDisk)) { in ReadMBRData()
178 delete myDisk; in ReadMBRData()
182 myDisk = theDisk; in ReadMBRData()
187 if (myDisk->Seek(0)) in ReadMBRData()
188 if (myDisk->Read(&tempMBR, 512)) in ReadMBRData()
221 diskSize = myDisk->DiskSize(&err); in ReadMBRData()
225 blockSize = myDisk->GetBlockSize(); in ReadMBRData()
300 if (myDisk->Seek(offset) == 0) { // seek to EBR record in ReadLogicalParts()
304 if (myDisk->Read(&ebr, 512) != 512) { // Load the data.... in ReadLogicalParts()
362 if (myDisk != NULL) { in WriteMBRData()
363 if (myDisk->OpenForWrite() != 0) { in WriteMBRData()
364 allOK = WriteMBRData(myDisk); in WriteMBRData()
369 myDisk->Close(); in WriteMBRData()
494 myDisk = theDisk; in SetDisk()
574 if (myDisk != NULL) { in CheckForGPT()
575 if (myDisk->OpenForRead() != 0) { in CheckForGPT()
576 if (myDisk->Seek(1)) { in CheckForGPT()
577 myDisk->Read(signature1, 8); in CheckForGPT()
580 if (myDisk->Seek(myDisk->DiskSize(&err) - 1)) { in CheckForGPT()
581 myDisk->Read(signature2, 8); in CheckForGPT()
591 myDisk->Close(); in CheckForGPT()
613 if ((myDisk != NULL) && (myDisk->OpenForWrite())) { in BlankGPTData()
614 if (!((myDisk->Seek(1)) && (myDisk->Write(blank, 512) == 512))) in BlankGPTData()
616 myDisk->Close(); in BlankGPTData()
620 if ((myDisk != NULL) && (myDisk->OpenForWrite())) { in BlankGPTData()
621 if (!((myDisk->Seek(myDisk->DiskSize(&err) - 1)) && in BlankGPTData()
622 (myDisk->Write(blank, 512) == 512))) in BlankGPTData()
624 myDisk->Close(); in BlankGPTData()
628 if ((myDisk != NULL) && (myDisk->OpenForWrite())) { in BlankGPTData()
629 if (!((myDisk->Seek(1)) && (myDisk->Write(blank, 512) == 512))) in BlankGPTData()
631 if (!((myDisk->Seek(myDisk->DiskSize(&err) - 1)) && in BlankGPTData()
632 (myDisk->Write(blank, 512) == 512))) in BlankGPTData()
634 myDisk->Close(); in BlankGPTData()
656 numHeads = myDisk->GetNumHeads(); in ReadCHSGeom()
657 numSecspTrack = myDisk->GetNumSecsPerTrack(); in ReadCHSGeom()
658 diskSize = myDisk->DiskSize(&err); in ReadCHSGeom()
659 blockSize = myDisk->GetBlockSize(); in ReadCHSGeom()