summaryrefslogtreecommitdiff
path: root/gptpart.cc
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2012-01-20 22:37:12 -0500
committersrs5694 <srs5694@users.sourceforge.net>2012-01-20 22:37:12 -0500
commite69e6807cf84fe2b80c48475531ce4bd09563bba (patch)
tree5ac02c945dd51decbc23a2f308ad700d0f2b6d8d /gptpart.cc
parent0541b56fee4e92822340a2b2387508dd58d0ca7c (diff)
downloadsgdisk-e69e6807cf84fe2b80c48475531ce4bd09563bba.tar.gz
Fixes related to handling of GPTs created under Solaris
Diffstat (limited to 'gptpart.cc')
-rw-r--r--gptpart.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gptpart.cc b/gptpart.cc
index 130add0..7ac629a 100644
--- a/gptpart.cc
+++ b/gptpart.cc
@@ -90,7 +90,8 @@ string GPTPart::GetDescription(void) {
// Return 1 if the partition is in use
int GPTPart::IsUsed(void) {
- return (firstLBA != UINT64_C(0));
+ return (partitionType != GUIDData("0x00"));
+// return (firstLBA != UINT64_C(0));
} // GPTPart::IsUsed()
// Set the type code to the specified one. Also changes the partition