mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 3 years ago
Clone

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

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