From ea605d1ec72960cf8076fb0260dd151a32750ff6 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 25 Jul 2013 14:35:08 +0200 Subject: [PATCH] thin: metadata resize needs 1.9 version Version 1.8 is not yet fully usable for metadata resize. --- WHATS_NEW | 1 + lib/thin/thin.c | 2 +- test/shell/lvresize-thin-metadata.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index 21c1f6d85..71228c910 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.100 - ================================ + Require 1.9 thin pool target version for online thin pool metadata resize. Ignore previous LV seg with alloc contiguous & cling when num stripes varies. Fix segfault if devices/global_filter is not specified correctly. diff --git a/lib/thin/thin.c b/lib/thin/thin.c index 863f0519a..d5592199a 100644 --- a/lib/thin/thin.c +++ b/lib/thin/thin.c @@ -584,7 +584,7 @@ static int _thin_target_present(struct cmd_context *cmd, { 1, 1, THIN_FEATURE_EXTERNAL_ORIGIN, "external_origin" }, { 1, 4, THIN_FEATURE_BLOCK_SIZE, "block_size" }, { 1, 5, THIN_FEATURE_DISCARDS_NON_POWER_2, "discards_non_power_2" }, - { 1, 8, THIN_FEATURE_METADATA_RESIZE, "metadata_resize" }, + { 1, 9, THIN_FEATURE_METADATA_RESIZE, "metadata_resize" }, }; static const char _lvmconf[] = "global/thin_disabled_features"; diff --git a/test/shell/lvresize-thin-metadata.sh b/test/shell/lvresize-thin-metadata.sh index d488a43a6..521b76cf3 100644 --- a/test/shell/lvresize-thin-metadata.sh +++ b/test/shell/lvresize-thin-metadata.sh @@ -11,7 +11,7 @@ . lib/test -aux have_thin 1 8 0 || skip +aux have_thin 1 9 0 || skip aux prepare_pvs 3