Blame SOURCES/device-mapper-persistent-data-0.2.8-1-missing-man-pages.patch

b0c38e
diff --git a/man8/cache_check.8 b/man8/cache_check.8
b0c38e
new file mode 100644
b0c38e
index 0000000..5cc7dff
b0c38e
--- /dev/null
b0c38e
+++ b/man8/cache_check.8
b0c38e
@@ -0,0 +1,62 @@
b0c38e
+.TH CACHE_CHECK 8 "Thin Provisioning Tools" "Red Hat, Inc." \" -*- nroff -*-
b0c38e
+.SH NAME
b0c38e
+cache_check \- repair cache metadata on device or file
b0c38e
+
b0c38e
+.SH SYNOPSIS
b0c38e
+.B cache_check
b0c38e
+.RB [ options ]
b0c38e
+.I {device|file}
b0c38e
+
b0c38e
+.SH DESCRIPTION
b0c38e
+.B cache_check
b0c38e
+checks cache  metadata created by
b0c38e
+the device-mapper cache target on a
b0c38e
+.I device
b0c38e
+or
b0c38e
+.I file.
b0c38e
+
b0c38e
+.SH OPTIONS
b0c38e
+.IP "\fB\-q, \-\-quiet\fP"
b0c38e
+Suppress output messages, return only exit code.
b0c38e
+
b0c38e
+.IP "\fB\-h, \-\-help\fP"
b0c38e
+Print help and exit.
b0c38e
+
b0c38e
+.IP "\fB\-V, \-\-version\fP"
b0c38e
+Output version information and exit.
b0c38e
+
b0c38e
+.IP "\fB\-\-super\-block\-only\fP"
b0c38e
+Only check the superblock is present.
b0c38e
+
b0c38e
+.IP "\fB\-\-skip-mappings\fP"
b0c38e
+Skip checking of the block mappings which make up the bulk of the
b0c38e
+metadata.
b0c38e
+
b0c38e
+.IP "\fB\-\-skip-hints\fP"
b0c38e
+Skip checking of the policy hint values metadata.
b0c38e
+
b0c38e
+.IP "\fB\-\-skip-discards\fP"
b0c38e
+Skip checking of the discard bits in the metadata.
b0c38e
+
b0c38e
+.SH EXAMPLE
b0c38e
+Analyses and repairs cache metadata on logical volume
b0c38e
+/dev/vg/metadata:
b0c38e
+.sp
b0c38e
+.B cache_check /dev/vg/metadata
b0c38e
+
b0c38e
+The device may not be actively used by the target
b0c38e
+when running.
b0c38e
+
b0c38e
+.SH DIAGNOSTICS
b0c38e
+.B cache_check
b0c38e
+returns an exit code of 0 for success or 1 for error.
b0c38e
+
b0c38e
+.SH SEE ALSO
b0c38e
+.B cache_dump(8)
b0c38e
+.B cache_repair(8)
b0c38e
+.B cache_restore(8)
b0c38e
+
b0c38e
+.SH AUTHOR
b0c38e
+Joe Thornber <ejt@redhat.com>
b0c38e
+.br
b0c38e
+Heinz Mauelshagen <HeinzM@RedHat.com>
b0c38e
diff --git a/man8/cache_dump.8 b/man8/cache_dump.8
b0c38e
new file mode 100644
b0c38e
index 0000000..a0c2924
b0c38e
--- /dev/null
b0c38e
+++ b/man8/cache_dump.8
b0c38e
@@ -0,0 +1,59 @@
b0c38e
+.TH CACHE_DUMP 8 "Thin Provisioning Tools" "Red Hat, Inc." \" -*- nroff -*-
b0c38e
+.SH NAME
b0c38e
+cache_dump \- dump cache metadata from device or file to standard output
b0c38e
+
b0c38e
+.SH SYNOPSIS
b0c38e
+.B cache_dump
b0c38e
+.RB [options]
b0c38e
+.I {device|file}
b0c38e
+
b0c38e
+.SH DESCRIPTION
b0c38e
+.B cache_dump
b0c38e
+dumps binary cache metadata created by
b0c38e
+the device-mapper cache target on a
b0c38e
+.I device
b0c38e
+or
b0c38e
+.I file
b0c38e
+to standard output for
b0c38e
+analysis or postprocessing in XML format.
b0c38e
+XML formated metadata can be fed into cache_restore (see
b0c38e
+.BR cache_restore(8) )
b0c38e
+in order to put it back onto a metadata
b0c38e
+.I device
b0c38e
+(to process by the device-mapper target) or
b0c38e
+.I file.
b0c38e
+
b0c38e
+.IP "\fB\-r, \-\-repair\fP".
b0c38e
+Repair the metadata whilst dumping it.
b0c38e
+
b0c38e
+.IP "\fB\-h, \-\-help\fP".
b0c38e
+Print help and exit.
b0c38e
+
b0c38e
+.IP "\fB\-V, \-\-version\fP".
b0c38e
+Output version information and exit.
b0c38e
+
b0c38e
+.SH EXAMPLES
b0c38e
+Dumps the cache metadata on logical volume /dev/vg/metadata
b0c38e
+to standard output in XML format:
b0c38e
+.sp
b0c38e
+.B cache_dump /dev/vg/metadata
b0c38e
+
b0c38e
+.SH EXAMPLES
b0c38e
+Dumps the cache metadata on logical volume /dev/vg/metadata
b0c38e
+whilst repairing it to standard output in XML format:
b0c38e
+.sp
b0c38e
+.B cache_dump --repair /dev/vg/metadata
b0c38e
+
b0c38e
+.SH DIAGNOSTICS
b0c38e
+.B cache_dump
b0c38e
+returns an exit code of 0 for success or 1 for error.
b0c38e
+
b0c38e
+.SH SEE ALSO
b0c38e
+.B cache_check(8)
b0c38e
+.B cache_repair(8)
b0c38e
+.B cache_restore(8)
b0c38e
+
b0c38e
+.SH AUTHOR
b0c38e
+Joe Thornber <ejt@redhat.com>
b0c38e
+.br
b0c38e
+Heinz Mauelshagen <HeinzM@RedHat.com>
b0c38e
diff --git a/man8/cache_repair.8 b/man8/cache_repair.8
b0c38e
new file mode 100644
b0c38e
index 0000000..ef04a7f
b0c38e
--- /dev/null
b0c38e
+++ b/man8/cache_repair.8
b0c38e
@@ -0,0 +1,61 @@
b0c38e
+.TH CACHE_REPAIR 8 "Thin Provisioning Tools" "Red Hat, Inc." \" -*- nroff -*-
b0c38e
+.SH NAME
b0c38e
+cache_repair \- repair cache binary metadata from device/file to device/file
b0c38e
+
b0c38e
+.SH SYNOPSIS
b0c38e
+.B cache_repair
b0c38e
+.RB [ options ]
b0c38e
+.RB -i
b0c38e
+.I {device|file}
b0c38e
+.RB -o
b0c38e
+.I {device|file}
b0c38e
+
b0c38e
+.SH DESCRIPTION
b0c38e
+.B cache_repair
b0c38e
+reads binary cache metadata created by the
b0c38e
+respective device-mapper target from one
b0c38e
+.I device
b0c38e
+or
b0c38e
+.I file
b0c38e
+, repairs it and writes it to another
b0c38e
+.I device
b0c38e
+or
b0c38e
+.I file.
b0c38e
+If written to a metadata
b0c38e
+.I device
b0c38e
+, the metadata can be processed
b0c38e
+by the device-mapper target.
b0c38e
+
b0c38e
+.IP "\fB\-i, \-\-input\fP \fI{device|file}\fP"
b0c38e
+Input file or device with binary metadata.
b0c38e
+
b0c38e
+.IP "\fB\-o, \-\-output\fP \fI{device|file}\fP"
b0c38e
+Output file or device for repaired binary metadata.
b0c38e
+
b0c38e
+.IP "\fB\-h, \-\-help\fP"
b0c38e
+Print help and exit.
b0c38e
+
b0c38e
+.IP "\fB\-V, \-\-version\fP"
b0c38e
+Output version information and exit.
b0c38e
+
b0c38e
+.SH EXAMPLE
b0c38e
+Reads the binary cache metadata from file
b0c38e
+.B metadata
b0c38e
+, repairs it and writes it to logical volume /dev/vg/metadata
b0c38e
+for further processing by the respective device-mapper target:
b0c38e
+.sp
b0c38e
+.B cache_repair -i metadata -o /dev/vg/metadata
b0c38e
+
b0c38e
+.SH DIAGNOSTICS
b0c38e
+.B cache_repair
b0c38e
+returns an exit code of 0 for success or 1 for error.
b0c38e
+
b0c38e
+.SH SEE ALSO
b0c38e
+.B cache_dump(8)
b0c38e
+.B cache_check(8)
b0c38e
+.B cache_restore(8)
b0c38e
+
b0c38e
+.SH AUTHOR
b0c38e
+Joe Thornber <ejt@redhat.com>
b0c38e
+.br
b0c38e
+Heinz Mauelshagen <HeinzM@RedHat.com>
b0c38e
diff --git a/man8/cache_restore.8 b/man8/cache_restore.8
b0c38e
new file mode 100644
b0c38e
index 0000000..5f9fdca
b0c38e
--- /dev/null
b0c38e
+++ b/man8/cache_restore.8
b0c38e
@@ -0,0 +1,64 @@
b0c38e
+.TH CACHE_RESTORE 8 "Thin Provisioning Tools" "Red Hat, Inc." \" -*- nroff -*-
b0c38e
+.SH NAME
b0c38e
+cache_restore \- restore cache metadata file to device or file
b0c38e
+
b0c38e
+.SH SYNOPSIS
b0c38e
+.B cache_restore
b0c38e
+.RB [ options ]
b0c38e
+.RB -i
b0c38e
+.I {device|file}
b0c38e
+.RB -o
b0c38e
+.I {device|file}
b0c38e
+
b0c38e
+.SH DESCRIPTION
b0c38e
+.B cache_restore
b0c38e
+restores cache metadata created by the respective
b0c38e
+device-mapper target dumped into an XML formatted (see
b0c38e
+.BR cache_dump(8) )
b0c38e
+.I file
b0c38e
+, which optionally can be preprocessed before the restore to another
b0c38e
+.I device
b0c38e
+or
b0c38e
+.I file.
b0c38e
+If restored to a metadata
b0c38e
+.I device
b0c38e
+, the metadata can be processed by the device-mapper target.
b0c38e
+
b0c38e
+.IP "\fB\-i, \-\-input\fP \fI{device|file}\fP"
b0c38e
+Input file or device with metadata.
b0c38e
+
b0c38e
+.IP "\fB\-o, \-\-output\fP \fI{device|file}\fP"
b0c38e
+Output file or device.
b0c38e
+
b0c38e
+.IP "\fB{\-\-debug-override-metadata-version}\fP \fI<integer>\fP"
b0c38e
+ONLY FOR DEBUGGING PURPOSES:
b0c38e
+.br
b0c38e
+override the version stored in the metadata.
b0c38e
+
b0c38e
+.IP "\fB\-h, \-\-help\fP"
b0c38e
+Print help and exit.
b0c38e
+
b0c38e
+.IP "\fB\-V, \-\-version\fP"
b0c38e
+Output version information and exit.
b0c38e
+
b0c38e
+.SH EXAMPLE
b0c38e
+Restores the XML formatted cache metadata on file
b0c38e
+.B metadata
b0c38e
+to logical volume /dev/vg/metadata for further processing by the
b0c38e
+respective device-mapper target:
b0c38e
+.sp
b0c38e
+.B cache_restore -i metadata -o /dev/vg/metadata
b0c38e
+
b0c38e
+.SH DIAGNOSTICS
b0c38e
+.B cache_restore
b0c38e
+returns an exit code of 0 for success or 1 for error.
b0c38e
+
b0c38e
+.SH SEE ALSO
b0c38e
+.B cache_dump(8)
b0c38e
+.B cache_check(8)
b0c38e
+.B cache_repair(8)
b0c38e
+
b0c38e
+.SH AUTHOR
b0c38e
+Joe Thornber <ejt@redhat.com>
b0c38e
+.br
b0c38e
+Heinz Mauelshagen <HeinzM@RedHat.com>