From e69e6807cf84fe2b80c48475531ce4bd09563bba Mon Sep 17 00:00:00 2001 From: srs5694 Date: Fri, 20 Jan 2012 22:37:12 -0500 Subject: Fixes related to handling of GPTs created under Solaris --- gptpart.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gptpart.cc') 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 -- cgit v1.2.1