Lines Matching refs:disklabel
799 // protective MBR) and loads BSD disklabel data (which is probably invalid).
805 // Read the MBR & check for BSD disklabel
1626 * Partition table transformation functions (MBR or BSD disklabel to GPT) *
1632 // MBR (use_mbr), the GPT (use_gpt), the BSD disklabel (use_bsd), or create
1657 << "Found invalid GPT and valid BSD disklabel; converting BSD disklabel\n"
1736 // Transforms BSD disklabel on the specified partition (numbered from 0).
1742 BSDData disklabel;
1753 // If all is OK, read the disklabel and convert it.
1755 goOn = disklabel.ReadBSDData(&myDisk, partitions[partNum].GetFirstLBA(),
1757 if ((goOn) && (disklabel.IsDisklabel())) {
1758 numDone = XFormDisklabel(&disklabel);
1764 cout << "Unable to convert partitions! Unrecognized BSD disklabel.\n";
1773 // Transform the partitions on an already-loaded BSD disklabel...
1774 int GPTData::XFormDisklabel(BSDData* disklabel) {
1777 if (disklabel->IsDisklabel()) {
1778 for (i = 0; i < disklabel->GetNumParts(); i++) {
1781 partitions[partNum] = disklabel->AsGPT(i);
1795 } // GPTData::XFormDisklabel(BSDData* disklabel)