Blame SOURCES/0024-make-generate.patch

fabacb
From 4b26fb3543049f3d179b620ff937c44e922ada58 Mon Sep 17 00:00:00 2001
fabacb
From: Marian Csontos <mcsontos@redhat.com>
fabacb
Date: Tue, 4 Jan 2022 17:15:56 +0100
4d51e5
Subject: [PATCH 24/54] make: generate
fabacb
fabacb
---
fabacb
 man/lvdisplay.8_pregen | 12 --------
fabacb
 man/pvdisplay.8_pregen | 12 --------
fabacb
 man/pvscan.8_pregen    | 63 ++++++++++++++++++------------------------
fabacb
 man/vgdisplay.8_pregen | 12 --------
fabacb
 4 files changed, 27 insertions(+), 72 deletions(-)
fabacb
fabacb
diff --git a/man/lvdisplay.8_pregen b/man/lvdisplay.8_pregen
fabacb
index a1740ebed..04aab4c09 100644
fabacb
--- a/man/lvdisplay.8_pregen
fabacb
+++ b/man/lvdisplay.8_pregen
fabacb
@@ -61,8 +61,6 @@ and more, using a more compact and configurable output format.
fabacb
 .br
fabacb
 [    \fB--readonly\fP ]
fabacb
 .br
fabacb
-[    \fB--reportformat\fP \fBbasic\fP|\fBjson\fP ]
fabacb
-.br
fabacb
 [    \fB--segments\fP ]
fabacb
 .br
fabacb
 [    \fB--separator\fP \fIString\fP ]
fabacb
@@ -332,16 +330,6 @@ device-mapper kernel driver, so this option is unable to report whether
fabacb
 or not LVs are actually in use.
fabacb
 .
fabacb
 .HP
fabacb
-\fB--reportformat\fP \fBbasic\fP|\fBjson\fP
fabacb
-.br
fabacb
-Overrides current output format for reports which is defined globally by
fabacb
-the report/output_format setting in \fBlvm.conf\fP(5).
fabacb
-\fBbasic\fP is the original format with columns and rows.
fabacb
-If there is more than one report per command, each report is prefixed
fabacb
-with the report name for identification. \fBjson\fP produces report
fabacb
-output in JSON format. See \fBlvmreport\fP(7) for more information.
fabacb
-.
fabacb
-.HP
fabacb
 \fB--segments\fP
fabacb
 .br
fabacb
 .
fabacb
diff --git a/man/pvdisplay.8_pregen b/man/pvdisplay.8_pregen
fabacb
index 22a0992b5..2f26a8727 100644
fabacb
--- a/man/pvdisplay.8_pregen
fabacb
+++ b/man/pvdisplay.8_pregen
fabacb
@@ -61,8 +61,6 @@ and more, using a more compact and configurable output format.
fabacb
 .br
fabacb
 [    \fB--readonly\fP ]
fabacb
 .br
fabacb
-[    \fB--reportformat\fP \fBbasic\fP|\fBjson\fP ]
fabacb
-.br
fabacb
 [    \fB--separator\fP \fIString\fP ]
fabacb
 .br
fabacb
 [    \fB--shared\fP ]
fabacb
@@ -320,16 +318,6 @@ device-mapper kernel driver, so this option is unable to report whether
fabacb
 or not LVs are actually in use.
fabacb
 .
fabacb
 .HP
fabacb
-\fB--reportformat\fP \fBbasic\fP|\fBjson\fP
fabacb
-.br
fabacb
-Overrides current output format for reports which is defined globally by
fabacb
-the report/output_format setting in \fBlvm.conf\fP(5).
fabacb
-\fBbasic\fP is the original format with columns and rows.
fabacb
-If there is more than one report per command, each report is prefixed
fabacb
-with the report name for identification. \fBjson\fP produces report
fabacb
-output in JSON format. See \fBlvmreport\fP(7) for more information.
fabacb
-.
fabacb
-.HP
fabacb
 \fB-S\fP|\fB--select\fP \fIString\fP
fabacb
 .br
fabacb
 Select objects for processing and reporting based on specified criteria.
fabacb
diff --git a/man/pvscan.8_pregen b/man/pvscan.8_pregen
fabacb
index 9eb6b5bf9..1c96d5aab 100644
fabacb
--- a/man/pvscan.8_pregen
fabacb
+++ b/man/pvscan.8_pregen
fabacb
@@ -91,59 +91,50 @@ like
fabacb
 or
fabacb
 .BR pvdisplay (8).
fabacb
 .P
fabacb
-When the --cache and -aay options are used, pvscan records which PVs are
fabacb
-available on the system, and activates LVs in completed VGs.  A VG is
fabacb
-complete when pvscan sees that the final PV in the VG has appeared.  This
fabacb
-is used by event-based system startup (systemd, udev) to activate LVs.
fabacb
-.P
fabacb
-The four main variations of this are:
fabacb
+When --cache is used, pvscan updates runtime lvm state on the system, or
fabacb
+with -aay performs autoactivation.
fabacb
 .P
fabacb
 .B pvscan --cache
fabacb
 .I device
fabacb
 .P
fabacb
-If device is present, lvm adds a record that the PV on device is online.
fabacb
+If device is present, lvm records that the PV on device is online.
fabacb
 If device is not present, lvm removes the online record for the PV.
fabacb
-In most cases, the pvscan will only read the named devices.
fabacb
+pvscan only reads the named device.
fabacb
 .P
fabacb
-.B pvscan --cache -aay
fabacb
-.IR device ...
fabacb
+.B pvscan --cache
fabacb
 .P
fabacb
-This begins by performing the same steps as above.  Afterward, if the VG
fabacb
-for the specified PV is complete, then pvscan will activate LVs in the VG
fabacb
-(the same as vgchange -aay vgname would do.)
fabacb
+Updates the runtime state for all lvm devices.
fabacb
 .P
fabacb
-.B pvscan --cache
fabacb
+.B pvscan --cache -aay
fabacb
+.I device
fabacb
 .P
fabacb
-This first clears all existing PV online records, then scans all devices
fabacb
-on the system, adding PV online records for any PVs that are found.
fabacb
+Performs the --cache steps for the device, then checks if the VG using the
fabacb
+device is complete.  If so, LVs in the VG are autoactivated, the same as
fabacb
+vgchange -aay vgname would do.  (A device name may be replaced with major
fabacb
+and minor numbers.)
fabacb
 .P
fabacb
 .B pvscan --cache -aay
fabacb
 .P
fabacb
-This begins by performing the same steps as pvscan --cache.  Afterward, it
fabacb
-activates LVs in any complete VGs.
fabacb
+Performs the --cache steps for all devices, then autoactivates any complete VGs.
fabacb
 .P
fabacb
-To prevent devices from being scanned by pvscan --cache, add them
fabacb
-to
fabacb
-.BR lvm.conf (5)
fabacb
-.B devices/global_filter.
fabacb
-For more information, see:
fabacb
-.br
fabacb
-.B lvmconfig --withcomments devices/global_filter
fabacb
+.B pvscan --cache --listvg|--listlvs
fabacb
+.I device
fabacb
 .P
fabacb
-Auto-activation of VGs or LVs can be enabled/disabled using:
fabacb
-.br
fabacb
+Performs the --cache steps for the device, then prints the name of the VG
fabacb
+using the device, or the names of LVs using the device.  --checkcomplete
fabacb
+is usually included to check if all PVs for the VG or LVs are online.
fabacb
+When this command is called by a udev rule, the output must conform to
fabacb
+udev rule specifications (see --udevoutput.)  The udev rule will use the
fabacb
+results to perform autoactivation.
fabacb
+.P
fabacb
+Autoactivation of VGs or LVs can be enabled/disabled using vgchange or
fabacb
+lvchange with --setautoactivation y|n, or by adding names to
fabacb
 .BR lvm.conf (5)
fabacb
 .B activation/auto_activation_volume_list
fabacb
 .P
fabacb
-For more information, see:
fabacb
-.br
fabacb
-.B lvmconfig --withcomments activation/auto_activation_volume_list
fabacb
-.P
fabacb
-To disable auto-activation, explicitly set this list to an empty list,
fabacb
-i.e. auto_activation_volume_list = [ ].
fabacb
-.P
fabacb
-When this setting is undefined (e.g. commented), then all LVs are
fabacb
-auto-activated.
fabacb
+See
fabacb
+.BR lvmautoactivation (7)
fabacb
+for more information about how pvscan is used for autoactivation.
fabacb
 .
fabacb
 .SH USAGE
fabacb
 .
fabacb
diff --git a/man/vgdisplay.8_pregen b/man/vgdisplay.8_pregen
fabacb
index 9c694921d..0a12b3c39 100644
fabacb
--- a/man/vgdisplay.8_pregen
fabacb
+++ b/man/vgdisplay.8_pregen
fabacb
@@ -58,8 +58,6 @@ and more, using a more compact and configurable output format.
fabacb
 .br
fabacb
 [    \fB--readonly\fP ]
fabacb
 .br
fabacb
-[    \fB--reportformat\fP \fBbasic\fP|\fBjson\fP ]
fabacb
-.br
fabacb
 [    \fB--shared\fP ]
fabacb
 .br
fabacb
 [    \fB--separator\fP \fIString\fP ]
fabacb
@@ -312,16 +310,6 @@ device-mapper kernel driver, so this option is unable to report whether
fabacb
 or not LVs are actually in use.
fabacb
 .
fabacb
 .HP
fabacb
-\fB--reportformat\fP \fBbasic\fP|\fBjson\fP
fabacb
-.br
fabacb
-Overrides current output format for reports which is defined globally by
fabacb
-the report/output_format setting in \fBlvm.conf\fP(5).
fabacb
-\fBbasic\fP is the original format with columns and rows.
fabacb
-If there is more than one report per command, each report is prefixed
fabacb
-with the report name for identification. \fBjson\fP produces report
fabacb
-output in JSON format. See \fBlvmreport\fP(7) for more information.
fabacb
-.
fabacb
-.HP
fabacb
 \fB-S\fP|\fB--select\fP \fIString\fP
fabacb
 .br
fabacb
 Select objects for processing and reporting based on specified criteria.
fabacb
-- 
4d51e5
2.34.3
fabacb