Blame SOURCES/lvm2-2_02_131-disallow-usage-of-stripe-and-stripesize-when-creating-cache-pool.patch

a4cb28
 WHATS_NEW        | 1 +
a4cb28
 tools/lvcreate.c | 5 ++++-
a4cb28
 2 files changed, 5 insertions(+), 1 deletion(-)
a4cb28
a4cb28
diff --git a/WHATS_NEW b/WHATS_NEW
a4cb28
index 5260321..1147dad 100644
a4cb28
--- a/WHATS_NEW
a4cb28
+++ b/WHATS_NEW
a4cb28
@@ -1,5 +1,6 @@
a4cb28
 Version 2.02.131 - 
a4cb28
 =====================================
a4cb28
+  Disallow usage of --stripe and --stripesize when creating cache pool.
a4cb28
   Swapping of LV identifiers handles more complex LVs.
a4cb28
   Fix VG metadata comparison failure while scanning the VG for lvmetad.
a4cb28
   Ignore persistent cache if configuration changed. (2.02.127)
a4cb28
diff --git a/tools/lvcreate.c b/tools/lvcreate.c
a4cb28
index 364a16a..7bba761 100644
a4cb28
--- a/tools/lvcreate.c
a4cb28
+++ b/tools/lvcreate.c
a4cb28
@@ -770,7 +770,8 @@ static int _lvcreate_params(struct cmd_context *cmd,
a4cb28
 					    CACHE_POOL_ARGS,
a4cb28
 					    LVCREATE_ARGS,
a4cb28
 					    POOL_ARGS,
a4cb28
-					    SIZE_ARGS,
a4cb28
+					    extents_ARG,
a4cb28
+					    size_ARG,
a4cb28
 					    cache_ARG,
a4cb28
 					    chunksize_ARG,
a4cb28
 					    -1))
a4cb28
@@ -1096,6 +1097,8 @@ static int _determine_cache_argument(struct volume_group *vg,
a4cb28
 		}
a4cb28
 		/* FIXME How to handle skip flag? */
a4cb28
 		if (arg_from_list_is_set(cmd, "is unsupported with cache conversion",
a4cb28
+					 stripes_ARG,
a4cb28
+					 stripesize_ARG,
a4cb28
 					 setactivationskip_ARG,
a4cb28
 					 ignoreactivationskip_ARG,
a4cb28
 					 -1))