mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 2 years ago
Clone

Blame SOURCES/lvm2-2_03_03-man-missed-zero-option-for-thin-pool-creation.patch

146ac4
 WHATS_NEW             | 1 +
146ac4
 man/lvcreate.8_pregen | 1 +
146ac4
 tools/args.h          | 1 +
146ac4
 3 files changed, 3 insertions(+)
146ac4
146ac4
diff --git a/WHATS_NEW b/WHATS_NEW
146ac4
index 6ccc090..002b5a3 100644
146ac4
--- a/WHATS_NEW
146ac4
+++ b/WHATS_NEW
146ac4
@@ -1,5 +1,6 @@
146ac4
 Version 2.03.03 - 
146ac4
 ====================================
146ac4
+  Restore missing man info lvcreate --zero for thin-pools.
146ac4
   Drop misleadning comment for metadata minimum_io_size for VDO segment.
146ac4
   Improve -lXXX%VG modifier which improves cache segment estimation.
146ac4
   Ensure migration_threshold for cache is at least 8 chunks.
146ac4
diff --git a/man/lvcreate.8_pregen b/man/lvcreate.8_pregen
146ac4
index 2a5e05d..ff68447 100644
146ac4
--- a/man/lvcreate.8_pregen
146ac4
+++ b/man/lvcreate.8_pregen
146ac4
@@ -2715,6 +2715,7 @@ answer yes. Use with extreme caution.
146ac4
 Controls zeroing of the first 4KiB of data in the new LV.
146ac4
 Default is \fBy\fP.
146ac4
 Snapshot COW volumes are always zeroed.
146ac4
+For thin pools, this controls zeroing of provisioned blocks.
146ac4
 LV is not zeroed if the read only flag is set.
146ac4
 Warning: trying to mount an unzeroed LV can cause the system to hang.
146ac4
 .ad b
146ac4
diff --git a/tools/args.h b/tools/args.h
146ac4
index 414d7a8..723179d 100644
146ac4
--- a/tools/args.h
146ac4
+++ b/tools/args.h
146ac4
@@ -1463,6 +1463,7 @@ arg(zero_ARG, 'Z', "zero", bool_VAL, 0, 0,
146ac4
     "Controls zeroing of the first 4KiB of data in the new LV.\n"
146ac4
     "Default is \\fBy\\fP.\n"
146ac4
     "Snapshot COW volumes are always zeroed.\n"
146ac4
+    "For thin pools, this controls zeroing of provisioned blocks.\n"
146ac4
     "LV is not zeroed if the read only flag is set.\n"
146ac4
     "Warning: trying to mount an unzeroed LV can cause the system to hang.\n"
146ac4
     "#pvcreate\n"