From 45e63e5b107efb887a64c32c639f22b558c352d7 Mon Sep 17 00:00:00 2001 From: Vratislav Podzimek Date: Mon, 4 Jan 2016 08:28:50 +0100 Subject: [PATCH] Round size in thpoolcreate() to KiB Otherwise LVM may complain about the size not being a multiple of 512. See https://bugzilla.redhat.com/show_bug.cgi?id=1224638 for more details. Signed-off-by: Vratislav Podzimek --- src/plugins/lvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lvm.c b/src/plugins/lvm.c index ead0d68..4f7e0e2 100644 --- a/src/plugins/lvm.c +++ b/src/plugins/lvm.c @@ -1364,7 +1364,7 @@ gboolean bd_lvm_thpoolcreate (gchar *vg_name, gchar *lv_name, guint64 size, guin guint8 next_arg = 4; gboolean success = FALSE; - args[3] = g_strdup_printf ("%"G_GUINT64_FORMAT"b", size); + args[3] = g_strdup_printf ("%"G_GUINT64_FORMAT"K", size/1024); if (md_size != 0) { args[next_arg] = g_strdup_printf("--poolmetadatasize=%"G_GUINT64_FORMAT"b", md_size); -- 2.5.0