libfdisk: (sun) add info about whole-disk partition

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2014-03-07 13:54:17 +01:00
parent 33867d3b6f
commit ef97e92ba5
1 changed files with 2 additions and 0 deletions

View 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",