Lines Matching full:bsd
1 /* bsd.cc -- Functions for loading and manipulating legacy BSD disklabel
24 #include "bsd.h"
45 // Read BSD disklabel data from the specified device filename. This function
66 // Load the BSD disklabel data from an already-opened disk
131 state = bsd; in ReadBSDData()
137 if (state == bsd) { in ReadBSDData()
184 // Display basic BSD partition data. Used for debugging.
188 if (state == bsd) { in DisplayBSDData()
189 cout << "BSD partitions:\n"; in DisplayBSDData()
206 // Displays the BSD disklabel state. Called during program launch to inform
213 cout << " BSD: not present\n"; in ShowState()
215 case bsd: in ShowState()
216 cout << " BSD: present\n"; in ShowState()
220 cout << "\a BSD: unknown -- bug!\n"; in ShowState()
229 return (state == bsd); in IsDisklabel()
232 // Returns the BSD table's partition type code
236 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0)) in GetType()
246 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0)) in GetFirstSector()
256 if ((i < numParts) && (i >= 0) && (state == bsd) && (partitions != 0)) in GetLength()
267 // Returns the specified partition as a GPT partition. Used in BSD-to-GPT
278 // Note on above: BSD partitions sometimes have a length of 0 and a start in AsGPT()
304 // Most BSD disklabel type codes seem to be archaic or rare. in AsGPT()
311 case 1: // BSD swap in AsGPT()
313 case 7: // BSD FFS in AsGPT()