Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gptfdisk
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
gptfdisk
Commits
a6022b03
Commit
a6022b03
authored
15 years ago
by
srs5694
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bug that caused BSD disklabel conversion to fail
parent
3c0af382
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG
+6
-1
6 additions, 1 deletion
CHANGELOG
bsd.cc
+6
-0
6 additions, 0 deletions
bsd.cc
bsd.h
+1
-1
1 addition, 1 deletion
bsd.h
with
13 additions
and
2 deletions
CHANGELOG
+
6
−
1
View file @
a6022b03
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.
...
...
This diff is collapsed.
Click to expand it.
bsd.cc
+
6
−
0
View file @
a6022b03
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
bsd.h
+
1
−
1
View file @
a6022b03
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment