Lines Matching full:bsd
1 /* bsd.cc -- Functions for loading and manipulating legacy BSD disklabel
22 #include "bsd.h"
43 // Read BSD disklabel data from the specified device filename. This function
64 // Load the BSD disklabel data from an already-opened disk
129 state = bsd; in ReadBSDData()
135 if (state == bsd) { in ReadBSDData()
182 // Display basic BSD partition data. Used for debugging.
186 if (state == bsd) { in DisplayBSDData()
187 cout << "BSD partitions:\n"; in DisplayBSDData()
204 // Displays the BSD disklabel state. Called during program launch to inform
211 cout << " BSD: not present\n"; in ShowState()
213 case bsd: in ShowState()
214 cout << " BSD: present\n"; in ShowState()
218 cout << "\a BSD: unknown -- bug!\n"; in ShowState()
227 return (state == bsd); in IsDisklabel()
230 // Returns the BSD table's partition type code
234 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0)) in GetType()
244 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0)) in GetFirstSector()
254 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0)) in GetLength()
265 // Returns the specified partition as a GPT partition. Used in BSD-to-GPT
276 // Note on above: BSD partitions sometimes have a length of 0 and a start in AsGPT()
302 // Most BSD disklabel type codes seem to be archaic or rare. in AsGPT()
309 case 1: // BSD swap in AsGPT()
311 case 7: // BSD FFS in AsGPT()