mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 2 years ago
Clone

Blame SOURCES/lvm2-2_02_180-make-generate.patch

5e29a5
 conf/example.conf.in      | 20 ++++++++++++++++----
5e29a5
 man/pvcreate.8_pregen     |  7 ++++---
5e29a5
 man/vgcfgrestore.8_pregen |  9 +++++----
5e29a5
 man/vgconvert.8_pregen    | 14 +++++++++-----
5e29a5
 man/vgcreate.8_pregen     |  7 ++++---
5e29a5
 man/vgextend.8_pregen     |  7 ++++---
5e29a5
 man/vgsplit.8_pregen      |  7 ++++---
5e29a5
 7 files changed, 46 insertions(+), 25 deletions(-)
5e29a5
5e29a5
diff --git a/conf/example.conf.in b/conf/example.conf.in
5e29a5
index cd58615..742812c 100644
5e29a5
--- a/conf/example.conf.in
5e29a5
+++ b/conf/example.conf.in
5e29a5
@@ -702,17 +702,29 @@ global {
5e29a5
 	activation = 1
5e29a5
 
5e29a5
 	# Configuration option global/fallback_to_lvm1.
5e29a5
-	# This setting is no longer used.
5e29a5
+	# Try running LVM1 tools if LVM cannot communicate with DM.
5e29a5
+	# This option only applies to 2.4 kernels and is provided to help
5e29a5
+	# switch between device-mapper kernels and LVM1 kernels. The LVM1
5e29a5
+	# tools need to be installed with .lvm1 suffices, e.g. vgscan.lvm1.
5e29a5
+	# They will stop working once the lvm2 on-disk metadata format is used.
5e29a5
 	# This configuration option has an automatic default value.
5e29a5
-	# fallback_to_lvm1 = 0
5e29a5
+	# fallback_to_lvm1 = @DEFAULT_FALLBACK_TO_LVM1@
5e29a5
 
5e29a5
 	# Configuration option global/format.
5e29a5
-	# This setting is no longer used.
5e29a5
+	# The default metadata format that commands should use.
5e29a5
+	# The -M 1|2 option overrides this setting.
5e29a5
+	# 
5e29a5
+	# Accepted values:
5e29a5
+	#   lvm1
5e29a5
+	#   lvm2
5e29a5
+	# 
5e29a5
 	# This configuration option has an automatic default value.
5e29a5
 	# format = "lvm2"
5e29a5
 
5e29a5
 	# Configuration option global/format_libraries.
5e29a5
-	# This setting is no longer used.
5e29a5
+	# Shared libraries that process different metadata formats.
5e29a5
+	# If support for LVM1 metadata was compiled as a shared library use
5e29a5
+	# format_libraries = "liblvm2format1.so"
5e29a5
 	# This configuration option does not have a default value defined.
5e29a5
 
5e29a5
 	# Configuration option global/segment_libraries.
5e29a5
diff --git a/man/pvcreate.8_pregen b/man/pvcreate.8_pregen
5e29a5
index c4b03da..abceb82 100644
5e29a5
--- a/man/pvcreate.8_pregen
5e29a5
+++ b/man/pvcreate.8_pregen
5e29a5
@@ -38,7 +38,7 @@ normally prevent it, e.g. if the PV is already in a VG.
5e29a5
 .ad b
5e29a5
 .br
5e29a5
 .ad l
5e29a5
-[ \fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP ]
5e29a5
+[ \fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP|\fBlvm1\fP ]
5e29a5
 .ad b
5e29a5
 .br
5e29a5
 .ad l
5e29a5
@@ -266,11 +266,12 @@ The size may be rounded.
5e29a5
 .ad b
5e29a5
 .HP
5e29a5
 .ad l
5e29a5
-\fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP
5e29a5
+\fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP|\fBlvm1\fP
5e29a5
 .br
5e29a5
 Specifies the type of on-disk metadata to use.
5e29a5
 \fBlvm2\fP (or just \fB2\fP) is the current, standard format.
5e29a5
-\fBlvm1\fP (or just \fB1\fP) is no longer used.
5e29a5
+\fBlvm1\fP (or just \fB1\fP) is a historical format that
5e29a5
+can be used for accessing old data.
5e29a5
 .ad b
5e29a5
 .HP
5e29a5
 .ad l
5e29a5
diff --git a/man/vgcfgrestore.8_pregen b/man/vgcfgrestore.8_pregen
5e29a5
index cffd44b..e028103 100644
5e29a5
--- a/man/vgcfgrestore.8_pregen
5e29a5
+++ b/man/vgcfgrestore.8_pregen
5e29a5
@@ -51,7 +51,7 @@ vgcfgrestore - Restore volume group configuration
5e29a5
 .ad b
5e29a5
 .br
5e29a5
 .ad l
5e29a5
- \fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP
5e29a5
+ \fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP|\fBlvm1\fP
5e29a5
 .ad b
5e29a5
 .br
5e29a5
 .ad l
5e29a5
@@ -141,7 +141,7 @@ Common options for command:
5e29a5
 .
5e29a5
 .RS 4
5e29a5
 .ad l
5e29a5
-[ \fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP ]
5e29a5
+[ \fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP|\fBlvm1\fP ]
5e29a5
 .ad b
5e29a5
 .br
5e29a5
 .ad l
5e29a5
@@ -280,11 +280,12 @@ Display long help text.
5e29a5
 .ad b
5e29a5
 .HP
5e29a5
 .ad l
5e29a5
-\fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP
5e29a5
+\fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP|\fBlvm1\fP
5e29a5
 .br
5e29a5
 Specifies the type of on-disk metadata to use.
5e29a5
 \fBlvm2\fP (or just \fB2\fP) is the current, standard format.
5e29a5
-\fBlvm1\fP (or just \fB1\fP) is no longer used.
5e29a5
+\fBlvm1\fP (or just \fB1\fP) is a historical format that
5e29a5
+can be used for accessing old data.
5e29a5
 .ad b
5e29a5
 .HP
5e29a5
 .ad l
5e29a5
diff --git a/man/vgconvert.8_pregen b/man/vgconvert.8_pregen
5e29a5
index 5e7f8a9..6228087 100644
5e29a5
--- a/man/vgconvert.8_pregen
5e29a5
+++ b/man/vgconvert.8_pregen
5e29a5
@@ -8,9 +8,12 @@ vgconvert - Change volume group metadata format
5e29a5
     [ \fIoption_args\fP ]
5e29a5
 .br
5e29a5
 .SH DESCRIPTION
5e29a5
-vgconvert converts VG metadata from one format to another.  This command
5e29a5
-is no longer used because this version of lvm no longer supports the LVM1
5e29a5
+vgconvert converts VG metadata from one format to another.  The new
5e29a5
+metadata format must be able to fit into the space provided by the old
5e29a5
 format.
5e29a5
+
5e29a5
+Because the LVM1 format should no longer be used, this command is no
5e29a5
+longer needed in general.
5e29a5
 .SH USAGE
5e29a5
 \fBvgconvert\fP \fIVG\fP ...
5e29a5
 .br
5e29a5
@@ -20,7 +23,7 @@ format.
5e29a5
 .ad b
5e29a5
 .br
5e29a5
 .ad l
5e29a5
-[ \fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP ]
5e29a5
+[ \fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP|\fBlvm1\fP ]
5e29a5
 .ad b
5e29a5
 .br
5e29a5
 .ad l
5e29a5
@@ -191,11 +194,12 @@ The size may be rounded.
5e29a5
 .ad b
5e29a5
 .HP
5e29a5
 .ad l
5e29a5
-\fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP
5e29a5
+\fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP|\fBlvm1\fP
5e29a5
 .br
5e29a5
 Specifies the type of on-disk metadata to use.
5e29a5
 \fBlvm2\fP (or just \fB2\fP) is the current, standard format.
5e29a5
-\fBlvm1\fP (or just \fB1\fP) is no longer used.
5e29a5
+\fBlvm1\fP (or just \fB1\fP) is a historical format that
5e29a5
+can be used for accessing old data.
5e29a5
 .ad b
5e29a5
 .HP
5e29a5
 .ad l
5e29a5
diff --git a/man/vgcreate.8_pregen b/man/vgcreate.8_pregen
5e29a5
index 09bf126..ddad391 100644
5e29a5
--- a/man/vgcreate.8_pregen
5e29a5
+++ b/man/vgcreate.8_pregen
5e29a5
@@ -33,7 +33,7 @@ devices are also available with vgcreate.
5e29a5
 .ad b
5e29a5
 .br
5e29a5
 .ad l
5e29a5
-[ \fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP ]
5e29a5
+[ \fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP|\fBlvm1\fP ]
5e29a5
 .ad b
5e29a5
 .br
5e29a5
 .ad l
5e29a5
@@ -324,11 +324,12 @@ The size may be rounded.
5e29a5
 .ad b
5e29a5
 .HP
5e29a5
 .ad l
5e29a5
-\fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP
5e29a5
+\fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP|\fBlvm1\fP
5e29a5
 .br
5e29a5
 Specifies the type of on-disk metadata to use.
5e29a5
 \fBlvm2\fP (or just \fB2\fP) is the current, standard format.
5e29a5
-\fBlvm1\fP (or just \fB1\fP) is no longer used.
5e29a5
+\fBlvm1\fP (or just \fB1\fP) is a historical format that
5e29a5
+can be used for accessing old data.
5e29a5
 .ad b
5e29a5
 .HP
5e29a5
 .ad l
5e29a5
diff --git a/man/vgextend.8_pregen b/man/vgextend.8_pregen
5e29a5
index a6a30e9..ee805a8 100644
5e29a5
--- a/man/vgextend.8_pregen
5e29a5
+++ b/man/vgextend.8_pregen
5e29a5
@@ -36,7 +36,7 @@ will initialize them. In this case pvcreate options can be used, e.g.
5e29a5
 .ad b
5e29a5
 .br
5e29a5
 .ad l
5e29a5
-[ \fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP ]
5e29a5
+[ \fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP|\fBlvm1\fP ]
5e29a5
 .ad b
5e29a5
 .br
5e29a5
 .ad l
5e29a5
@@ -237,11 +237,12 @@ The size may be rounded.
5e29a5
 .ad b
5e29a5
 .HP
5e29a5
 .ad l
5e29a5
-\fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP
5e29a5
+\fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP|\fBlvm1\fP
5e29a5
 .br
5e29a5
 Specifies the type of on-disk metadata to use.
5e29a5
 \fBlvm2\fP (or just \fB2\fP) is the current, standard format.
5e29a5
-\fBlvm1\fP (or just \fB1\fP) is no longer used.
5e29a5
+\fBlvm1\fP (or just \fB1\fP) is a historical format that
5e29a5
+can be used for accessing old data.
5e29a5
 .ad b
5e29a5
 .HP
5e29a5
 .ad l
5e29a5
diff --git a/man/vgsplit.8_pregen b/man/vgsplit.8_pregen
5e29a5
index 6c3e6ec..210c266 100644
5e29a5
--- a/man/vgsplit.8_pregen
5e29a5
+++ b/man/vgsplit.8_pregen
5e29a5
@@ -62,7 +62,7 @@ Common options for command:
5e29a5
 .ad b
5e29a5
 .br
5e29a5
 .ad l
5e29a5
-[ \fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP ]
5e29a5
+[ \fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP|\fBlvm1\fP ]
5e29a5
 .ad b
5e29a5
 .br
5e29a5
 .ad l
5e29a5
@@ -230,11 +230,12 @@ and --vgmetadatacopies for improving performance.
5e29a5
 .ad b
5e29a5
 .HP
5e29a5
 .ad l
5e29a5
-\fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP
5e29a5
+\fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP|\fBlvm1\fP
5e29a5
 .br
5e29a5
 Specifies the type of on-disk metadata to use.
5e29a5
 \fBlvm2\fP (or just \fB2\fP) is the current, standard format.
5e29a5
-\fBlvm1\fP (or just \fB1\fP) is no longer used.
5e29a5
+\fBlvm1\fP (or just \fB1\fP) is a historical format that
5e29a5
+can be used for accessing old data.
5e29a5
 .ad b
5e29a5
 .HP
5e29a5
 .ad l