Blame SOURCES/lvm2-2_03_10-build-make-generate.patch

18db87
From 7def94164ae6c18d84e40f00db2e2b74a7662b35 Mon Sep 17 00:00:00 2001
18db87
From: Marian Csontos <mcsontos@redhat.com>
18db87
Date: Tue, 5 May 2020 10:20:18 +0200
18db87
Subject: [PATCH] build: make generate
18db87
18db87
(cherry picked from commit bcc149048440dce5fc7962f88ed523469dd39a32)
18db87
---
18db87
 man/lvconvert.8_pregen | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++
18db87
 man/lvcreate.8_pregen  | 53 ++++++++++++++++++++++++++++++++++++++++++
18db87
 2 files changed, 116 insertions(+)
18db87
18db87
diff --git a/man/lvconvert.8_pregen b/man/lvconvert.8_pregen
18db87
index b676e72..7440984 100644
18db87
--- a/man/lvconvert.8_pregen
18db87
+++ b/man/lvconvert.8_pregen
18db87
@@ -163,6 +163,18 @@ lvconvert - Change logical volume layout
18db87
 .ad b
18db87
 .br
18db87
 .ad l
18db87
+    \fB--raidintegrity\fP \fBy\fP|\fBn\fP
18db87
+.ad b
18db87
+.br
18db87
+.ad l
18db87
+    \fB--raidintegrityblocksize\fP \fINumber\fP
18db87
+.ad b
18db87
+.br
18db87
+.ad l
18db87
+    \fB--raidintegritymode\fP \fIString\fP
18db87
+.ad b
18db87
+.br
18db87
+.ad l
18db87
  \fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP
18db87
 .ad b
18db87
 .br
18db87
@@ -982,6 +994,28 @@ Poll LV to continue conversion.
18db87
 .br
18db87
 -
18db87
 
18db87
+Add or remove data integrity checksums to raid images.
18db87
+.br
18db87
+.P
18db87
+\fBlvconvert\fP \fB--raidintegrity\fP \fBy\fP|\fBn\fP \fILV\fP\fI_raid\fP
18db87
+.br
18db87
+.RS 4
18db87
+.ad l
18db87
+[    \fB--raidintegritymode\fP \fIString\fP ]
18db87
+.ad b
18db87
+.br
18db87
+.ad l
18db87
+[    \fB--raidintegrityblocksize\fP \fINumber\fP ]
18db87
+.ad b
18db87
+.br
18db87
+[ COMMON_OPTIONS ]
18db87
+.RE
18db87
+.br
18db87
+.RS 4
18db87
+[ \fIPV\fP ... ]
18db87
+.RE
18db87
+-
18db87
+
18db87
 Common options for command:
18db87
 .
18db87
 .RS 4
18db87
@@ -1405,6 +1439,35 @@ Repeat once to also suppress any prompts with answer 'no'.
18db87
 .ad b
18db87
 .HP
18db87
 .ad l
18db87
+\fB--raidintegrity\fP \fBy\fP|\fBn\fP
18db87
+.br
18db87
+Enable or disable data integrity checksums for raid images.
18db87
+.ad b
18db87
+.HP
18db87
+.ad l
18db87
+\fB--raidintegrityblocksize\fP \fINumber\fP
18db87
+.br
18db87
+The block size to use for dm-integrity on raid images.
18db87
+The integrity block size should usually match the device
18db87
+logical block size, or the file system block size.
18db87
+It may be less than the file system block size, but not
18db87
+less than the device logical block size.
18db87
+Possible values: 512, 1024, 2048, 4096.
18db87
+.ad b
18db87
+.HP
18db87
+.ad l
18db87
+\fB--raidintegritymode\fP \fIString\fP
18db87
+.br
18db87
+Use a journal (default) or bitmap for keeping integrity checksums consistent
18db87
+in case of a crash. The bitmap areas are recalculated after a crash, so corruption
18db87
+in those areas would not be detected. A journal does not have this problem.
18db87
+The journal mode doubles writes to storage, but can improve performance for
18db87
+scattered writes packed into a single journal write.
18db87
+bitmap mode can in theory achieve full write throughput of the device,
18db87
+but would not benefit from the potential scattered write optimization.
18db87
+.ad b
18db87
+.HP
18db87
+.ad l
18db87
 \fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP
18db87
 .br
18db87
 Sets read ahead sector count of an LV.
18db87
diff --git a/man/lvcreate.8_pregen b/man/lvcreate.8_pregen
18db87
index a80f9f5..be8e783 100644
18db87
--- a/man/lvcreate.8_pregen
18db87
+++ b/man/lvcreate.8_pregen
18db87
@@ -187,6 +187,18 @@ lvcreate - Create a logical volume
18db87
 .ad b
18db87
 .br
18db87
 .ad l
18db87
+    \fB--raidintegrity\fP \fBy\fP|\fBn\fP
18db87
+.ad b
18db87
+.br
18db87
+.ad l
18db87
+    \fB--raidintegrityblocksize\fP \fINumber\fP
18db87
+.ad b
18db87
+.br
18db87
+.ad l
18db87
+    \fB--raidintegritymode\fP \fIString\fP
18db87
+.ad b
18db87
+.br
18db87
+.ad l
18db87
  \fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP
18db87
 .ad b
18db87
 .br
18db87
@@ -425,6 +437,18 @@ Create a raid LV (a specific raid level must be used, e.g. raid1).
18db87
 [    \fB--[raid]maxrecoveryrate\fP \fISize\fP[k|UNIT] ]
18db87
 .ad b
18db87
 .br
18db87
+.ad l
18db87
+[    \fB--raidintegrity\fP \fBy\fP|\fBn\fP ]
18db87
+.ad b
18db87
+.br
18db87
+.ad l
18db87
+[    \fB--raidintegritymode\fP \fIString\fP ]
18db87
+.ad b
18db87
+.br
18db87
+.ad l
18db87
+[    \fB--raidintegrityblocksize\fP \fINumber\fP ]
18db87
+.ad b
18db87
+.br
18db87
 [ COMMON_OPTIONS ]
18db87
 .RE
18db87
 .br
18db87
@@ -1420,6 +1444,35 @@ Repeat once to also suppress any prompts with answer 'no'.
18db87
 .ad b
18db87
 .HP
18db87
 .ad l
18db87
+\fB--raidintegrity\fP \fBy\fP|\fBn\fP
18db87
+.br
18db87
+Enable or disable data integrity checksums for raid images.
18db87
+.ad b
18db87
+.HP
18db87
+.ad l
18db87
+\fB--raidintegrityblocksize\fP \fINumber\fP
18db87
+.br
18db87
+The block size to use for dm-integrity on raid images.
18db87
+The integrity block size should usually match the device
18db87
+logical block size, or the file system block size.
18db87
+It may be less than the file system block size, but not
18db87
+less than the device logical block size.
18db87
+Possible values: 512, 1024, 2048, 4096.
18db87
+.ad b
18db87
+.HP
18db87
+.ad l
18db87
+\fB--raidintegritymode\fP \fIString\fP
18db87
+.br
18db87
+Use a journal (default) or bitmap for keeping integrity checksums consistent
18db87
+in case of a crash. The bitmap areas are recalculated after a crash, so corruption
18db87
+in those areas would not be detected. A journal does not have this problem.
18db87
+The journal mode doubles writes to storage, but can improve performance for
18db87
+scattered writes packed into a single journal write.
18db87
+bitmap mode can in theory achieve full write throughput of the device,
18db87
+but would not benefit from the potential scattered write optimization.
18db87
+.ad b
18db87
+.HP
18db87
+.ad l
18db87
 \fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP
18db87
 .br
18db87
 Sets read ahead sector count of an LV.
18db87
-- 
18db87
1.8.3.1
18db87