summaryrefslogtreecommitdiffstats
path: root/fdisks/fdiskbsdlabel.c
diff options
context:
space:
mode:
authorKarel Zak2013-06-14 14:33:51 +0200
committerKarel Zak2013-09-16 16:47:01 +0200
commitcaad858324b9d1311cbea64cd565854cd4f44fae (patch)
treeaa2c6f22301e3ff94e9d28bcb1923708cfb6ac6e /fdisks/fdiskbsdlabel.c
parentfdisk: move remaining ptes[] code to fdiskdoslabel.c (diff)
downloadkernel-qcow2-util-linux-caad858324b9d1311cbea64cd565854cd4f44fae.tar.gz
kernel-qcow2-util-linux-caad858324b9d1311cbea64cd565854cd4f44fae.tar.xz
kernel-qcow2-util-linux-caad858324b9d1311cbea64cd565854cd4f44fae.zip
libfdisk: add FDISK_LABEL_FL_REQUIRE_GEOMETRY
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdiskbsdlabel.c')
-rw-r--r--fdisks/fdiskbsdlabel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fdisks/fdiskbsdlabel.c b/fdisks/fdiskbsdlabel.c
index 8f891b0da..23772673b 100644
--- a/fdisks/fdiskbsdlabel.c
+++ b/fdisks/fdiskbsdlabel.c
@@ -1062,8 +1062,8 @@ struct fdisk_label *fdisk_new_bsd_label(struct fdisk_context *cxt)
lb->parttypes = xbsd_fstypes;
lb->nparttypes = ARRAY_SIZE(xbsd_fstypes);
- /* don't ask for partition number for op->part_add() */
- lb->flags = FDISK_LABEL_FL_ADDPART_NOPARTNO;
+ lb->flags |= FDISK_LABEL_FL_ADDPART_NOPARTNO;
+ lb->flags |= FDISK_LABEL_FL_REQUIRE_GEOMETRY;
return lb;
}