Skip to content
Snippets Groups Projects
Commit a6022b03 authored by srs5694's avatar srs5694
Browse files

Fixed bug that caused BSD disklabel conversion to fail

parent 3c0af382
No related branches found
No related tags found
No related merge requests found
0.6.0 (1/??/2009): 0.6.1 (1/??/2009):
------------------
- Fixed bug that caused BSD disklabel conversion to not work.
0.6.0 (1/15/2009):
------------------ ------------------
- Fixed bug that caused the convert to MBR function to fail. - Fixed bug that caused the convert to MBR function to fail.
......
...@@ -201,6 +201,12 @@ int BSDData::ShowState(void) { ...@@ -201,6 +201,12 @@ int BSDData::ShowState(void) {
return retval; return retval;
} // BSDData::ShowState() } // BSDData::ShowState()
// Weirdly, this function has stopped working when defined inline,
// but it's OK here....
int BSDData::IsDisklabel(void) {
return (state == bsd);
} // BSDData::IsDiskLabel()
// Returns the BSD table's partition type code // Returns the BSD table's partition type code
uint8_t BSDData::GetType(int i) { uint8_t BSDData::GetType(int i) {
uint8_t retval = 0; // 0 = "unused" uint8_t retval = 0; // 0 = "unused"
......
...@@ -72,7 +72,7 @@ class BSDData { ...@@ -72,7 +72,7 @@ class BSDData {
void ReverseMetaBytes(void); void ReverseMetaBytes(void);
void DisplayBSDData(void); void DisplayBSDData(void);
int ShowState(void); // returns 1 if BSD disklabel detected int ShowState(void); // returns 1 if BSD disklabel detected
int IsDisklabel(void) {return (state == bsd);} int IsDisklabel(void);
// Functions to extract data on specific partitions.... // Functions to extract data on specific partitions....
uint8_t GetType(int i); uint8_t GetType(int i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment