From 0e8449a5b921e60e6952ac5ff33e81a40abcd23a Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 23 Apr 2016 21:09:09 +0200 Subject: [PATCH] thin: fix lvchange of discards and zero flag Reload of thin-pool origin_only is designed to only post messages to a thin-pool. It's not intended to be used for reload of thin-pool table. Fix it by using standard call 'lv_update_and_reload()'. --- WHATS_NEW | 1 + tools/lvchange.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index ba14c6d4a..ebb9c8ca8 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.166 - ===================================== + Fix lvchange --discard|--zero for active thin-pool. Enforce 4MiB or 25% metadata free space for thin pool operations. Fix lock-holder device for thin pool with inactive thin volumes. Use --alloc normal for mirror logs even if the mimages were stricter. diff --git a/tools/lvchange.c b/tools/lvchange.c index 4810392dc..250d7209b 100644 --- a/tools/lvchange.c +++ b/tools/lvchange.c @@ -136,7 +136,7 @@ static int _lvchange_pool_update(struct cmd_context *cmd, if (!update) return 0; - if (!lv_update_and_reload_origin(lv)) + if (!lv_update_and_reload(lv)) return_0; return 1;