Blame SOURCES/device-mapper-persistent-data-add-era_restore-and-cache_metadata_size-man-pages.patch

f0acfe
--- thin-provisioning-tools-0.4.1/man8/era_restore.8.orig	2014-10-28 14:24:43.356272471 +0100
f0acfe
+++ thin-provisioning-tools-0.4.1/man8/era_restore.8	2014-10-28 14:28:56.358133852 +0100
f0acfe
@@ -0,0 +1,63 @@
f0acfe
+.TH ERA_RESTORE 8 "Thin Provisioning Tools" "Red Hat, Inc." \" -*- nroff -*-
f0acfe
+.SH NAME
f0acfe
+era_restore \- restore era metadata file to device or file
f0acfe
+
f0acfe
+.SH SYNOPSIS
f0acfe
+.B era_restore
f0acfe
+.RB [ options ]
f0acfe
+.RB -i
f0acfe
+.I {device|file}
f0acfe
+.RB -o
f0acfe
+.I {device|file}
f0acfe
+
f0acfe
+.SH DESCRIPTION
f0acfe
+.B era_restore
f0acfe
+restores binary era metadata created by the
f0acfe
+respective device-mapper target dumped into an XML formatted (see
f0acfe
+.BR era_dump(8) )
f0acfe
+.I file
f0acfe
+, which optionally can be preprocessed before the restore to another
f0acfe
+.I device
f0acfe
+or
f0acfe
+.I file.
f0acfe
+If restored to a metadata
f0acfe
+.I device
f0acfe
+, the metadata can be processed by the device-mapper target.
f0acfe
+
f0acfe
+.IP "\fB\-q, \-\-quiet\fP"
f0acfe
+Suppress output messages, return only exit code.
f0acfe
+
f0acfe
+.IP "\fB\-i, \-\-input\fP \fI{device|file}\fP"
f0acfe
+Input file or device with metadata.
f0acfe
+
f0acfe
+.IP "\fB\-o, \-\-output\fP \fI{device|file}\fP"
f0acfe
+Output file or device.
f0acfe
+
f0acfe
+.IP "\fB\-h, \-\-help\fP"
f0acfe
+Print help and exit.
f0acfe
+
f0acfe
+.IP "\fB\-V, \-\-version\fP"
f0acfe
+Output version information and exit.
f0acfe
+
f0acfe
+.SH EXAMPLE
f0acfe
+Restores the XML formatted era metadata on file
f0acfe
+.B metadata
f0acfe
+to logical volume /dev/vg/metadata for further processing by the
f0acfe
+respective device-mapper target:
f0acfe
+.sp
f0acfe
+.B era_restore -i metadata -o /dev/vg/metadata
f0acfe
+
f0acfe
+.SH DIAGNOSTICS
f0acfe
+.B era_restore
f0acfe
+returns an exit code of 0 for success or 1 for error.
f0acfe
+
f0acfe
+.SH SEE ALSO
f0acfe
+.B era_check(8)
f0acfe
+.B era_dump(8)
f0acfe
+.B era_invaidate(8)
f0acfe
+.B era_restore(8)
f0acfe
+
f0acfe
+.SH AUTHOR
f0acfe
+Joe Thornber <ejt@redhat.com>
f0acfe
+.br
f0acfe
+Heinz Mauelshagen <HeinzM@RedHat.com>
f0acfe
--- thin-provisioning-tools-0.4.1/man8/cache_metadata_size.8.orig	2014-10-28 14:31:49.116087709 +0100
f0acfe
+++ thin-provisioning-tools-0.4.1/man8/cache_metadata_size.8	2014-10-28 14:50:29.337238755 +0100
f0acfe
@@ -0,0 +1,47 @@
f0acfe
+.TH CACHE_METADATA_SIZE 8 "Thin Provisioning Tools" "Red Hat, Inc." \" -*- nroff -*-
f0acfe
+.SH NAME
f0acfe
+cache_metadata_size \- cache metadata device/file size calculator.
f0acfe
+
f0acfe
+.SH SYNOPSIS
f0acfe
+.B cache_metadata_size
f0acfe
+.RB [ options ]
f0acfe
+
f0acfe
+.SH DESCRIPTION
f0acfe
+.B cache_metadata_size
f0acfe
+calculates the size of the cache metadata based on the block size
f0acfe
+of the cache device and the cache block size.
f0acfe
+All relates to the size of the fast device (eg, SSD), rather
f0acfe
+than the whole cached (i.e. origin) device.
f0acfe
+
f0acfe
+.IP "\fB\\-\-block\-size <sectors>\fP
f0acfe
+Block size of cache in units of sectors.
f0acfe
+
f0acfe
+.IP "\fB\\-\-device\-size <sectors>\fP
f0acfe
+Device size of the cache device in units of sectors.
f0acfe
+
f0acfe
+.IP "\fB\\-\-nr\-blocks <natural>\fP
f0acfe
+Capacity of the cache in number of blocks.
f0acfe
+
f0acfe
+.IP "\fB\-h, \-\-help\fP"
f0acfe
+Print help and exit.
f0acfe
+
f0acfe
+.IP "\fB\-V, \-\-version\fP"
f0acfe
+Output version information and exit.
f0acfe
+
f0acfe
+.SH EXAMPLES
f0acfe
+Calculates the cache metadata device size for block size 256 sectors.and device size of 2GiB
f0acfe
+.sp
f0acfe
+.B cache_metadata_size --block-size 256 --device-size $((2*1024*1024))
f0acfe
+
f0acfe
+.SH DIAGNOSTICS
f0acfe
+.B cache_metadata_size
f0acfe
+returns an exit code of 0 for success or 1 for error.
f0acfe
+
f0acfe
+.SH SEE ALSO
f0acfe
+.B cache_check(8)
f0acfe
+.B cache_dump(8)
f0acfe
+.B cache_repair(8)
f0acfe
+.B cache_restore(8)
f0acfe
+
f0acfe
+.SH AUTHOR
f0acfe
+Heinz Mauelshagen <HeinzM@RedHat.com>