]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: (sun) add info about whole-disk partition
authorKarel Zak <kzak@redhat.com>
Fri, 7 Mar 2014 12:54:17 +0000 (13:54 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 11 Mar 2014 10:35:15 +0000 (11:35 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/sun.c

index 2b31358b9e6899518996955cff2771f7cd7d77ac..fc3685d47251da44c616d0a8456e7918d42a11a9 100644 (file)
@@ -777,6 +777,8 @@ static int sun_get_partition(struct fdisk_context *cxt, size_t n,
        len = be32_to_cpu(part->num_sectors);
 
        pa->type = sun_get_parttype(cxt, n);
+       if (pa->type && pa->type->type == SUN_TAG_WHOLEDISK)
+               pa->wholedisk = 1;
 
        if (flags & SUN_FLAG_UNMNT || flags & SUN_FLAG_RONLY) {
                if (asprintf(&pa->attrs, "%c%c",