summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/context.c
diff options
context:
space:
mode:
authorKarel Zak2017-01-16 11:20:32 +0100
committerKarel Zak2017-01-16 11:20:32 +0100
commitb2140d2f24e046d57f9c653aad2f21732f04a51e (patch)
treeb7c3f4ee0ee630ae61e51278cce5e01603f2ce9a /libfdisk/src/context.c
parentpartx: add --sector-size option (diff)
downloadkernel-qcow2-util-linux-b2140d2f24e046d57f9c653aad2f21732f04a51e.tar.gz
kernel-qcow2-util-linux-b2140d2f24e046d57f9c653aad2f21732f04a51e.tar.xz
kernel-qcow2-util-linux-b2140d2f24e046d57f9c653aad2f21732f04a51e.zip
libfdisk: apply label alignment properties
This fix changes from the previous patches. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/context.c')
-rw-r--r--libfdisk/src/context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libfdisk/src/context.c b/libfdisk/src/context.c
index 25220f064..3d0e8754f 100644
--- a/libfdisk/src/context.c
+++ b/libfdisk/src/context.c
@@ -621,6 +621,8 @@ int fdisk_assign_device(struct fdisk_context *cxt,
fdisk_probe_labels(cxt);
+ fdisk_apply_label_device_properties(cxt);
+
/* warn about obsolete stuff on the device if we aren't in
* list-only mode and there is not PT yet */
if (!fdisk_is_listonly(cxt) && !fdisk_has_label(cxt) && check_collisions(cxt) < 0)