diff options
author | Karel Zak | 2013-03-05 15:14:04 +0100 |
---|---|---|
committer | Karel Zak | 2013-03-11 13:00:58 +0100 |
commit | e09435aa538d9edc13880a25b912979923a561cd (patch) | |
tree | 933ccb63f57e8ab94eeb642354eb9f19a82e9d4b /fdisks/fdiskdoslabel.c | |
parent | libfdisk: add support for nested contexts (diff) | |
download | kernel-qcow2-util-linux-e09435aa538d9edc13880a25b912979923a561cd.tar.gz kernel-qcow2-util-linux-e09435aa538d9edc13880a25b912979923a561cd.tar.xz kernel-qcow2-util-linux-e09435aa538d9edc13880a25b912979923a561cd.zip |
fdisk: (bds) use nested partition table
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdiskdoslabel.c')
-rw-r--r-- | fdisks/fdiskdoslabel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fdisks/fdiskdoslabel.c b/fdisks/fdiskdoslabel.c index 8af391fb7..dc1d87b46 100644 --- a/fdisks/fdiskdoslabel.c +++ b/fdisks/fdiskdoslabel.c @@ -1050,7 +1050,7 @@ static struct fdisk_parttype *dos_get_parttype( assert(cxt); assert(cxt->label); - assert(fdisk_is_disklabel(cxt, OSF)); + assert(fdisk_is_disklabel(cxt, DOS)); if (partnum >= cxt->label->nparts_max) return NULL; @@ -1071,7 +1071,7 @@ static int dos_set_parttype( assert(cxt); assert(cxt->label); - assert(fdisk_is_disklabel(cxt, OSF)); + assert(fdisk_is_disklabel(cxt, DOS)); if (partnum >= cxt->label->nparts_max || !t || t->type > UINT8_MAX) return -EINVAL; |