diff options
author | Karel Zak | 2013-05-02 15:40:36 +0200 |
---|---|---|
committer | Karel Zak | 2013-09-16 16:46:54 +0200 |
commit | b4bfbaddfa30e2e91a36ff42e461e51504544d16 (patch) | |
tree | df65661fe16d9c608cd8c577044c0b82a27f0d15 /fdisks/fdiskdoslabel.c | |
parent | libfdisk: add fdisk_scround() (diff) | |
download | kernel-qcow2-util-linux-b4bfbaddfa30e2e91a36ff42e461e51504544d16.tar.gz kernel-qcow2-util-linux-b4bfbaddfa30e2e91a36ff42e461e51504544d16.tar.xz kernel-qcow2-util-linux-b4bfbaddfa30e2e91a36ff42e461e51504544d16.zip |
libfdisk: (sun) move driver from fdisk to library
... and also add fdisk_info_new_partition()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdiskdoslabel.c')
-rw-r--r-- | fdisks/fdiskdoslabel.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fdisks/fdiskdoslabel.c b/fdisks/fdiskdoslabel.c index 5fd1da823..44dc40e12 100644 --- a/fdisks/fdiskdoslabel.c +++ b/fdisks/fdiskdoslabel.c @@ -522,9 +522,10 @@ static void set_partition(struct fdisk_context *cxt, set_start_sect(p, start - offset); set_nr_sects(p, stop - start + 1); - if (!doext) - print_partition_size(cxt, i + 1, start, stop, sysid); - + if (!doext) { + struct fdisk_parttype *t = fdisk_get_parttype_from_code(cxt, sysid); + fdisk_info_new_partition(cxt, i + 1, start, stop, t); + } if (is_dos_compatible(cxt) && (start/(cxt->geom.sectors*cxt->geom.heads) > 1023)) start = cxt->geom.heads*cxt->geom.sectors*1024 - 1; set_hsc(p->head, p->sector, p->cyl, start); |