mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 2 years ago
Clone

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

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