diff options
Diffstat (limited to 'fdisk/fdisksunlabel.c')
-rw-r--r-- | fdisk/fdisksunlabel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fdisk/fdisksunlabel.c b/fdisk/fdisksunlabel.c index 9335e75e2..7d3aa09e1 100644 --- a/fdisk/fdisksunlabel.c +++ b/fdisk/fdisksunlabel.c @@ -106,6 +106,7 @@ static void set_sun_partition(int i, uint32_t start, uint32_t stop, uint16_t sys sunlabel->partitions[i].num_sectors = SSWAP32(stop - start); set_changed(i); + print_partition_size(i + 1, start, stop, sysid); } void sun_nolabel(void) @@ -250,6 +251,9 @@ void create_sunlabel(void) } else ndiv = cylinders * 2 / 3; + /* Make sure print_partition_size() uses correct sysid names */ + disklabel = SUN_LABEL; + set_sun_partition(0, 0, ndiv * heads * sectors, SUN_TAG_LINUX_NATIVE); set_sun_partition(1, ndiv * heads * sectors, |