[thin_metadata_pack] First pass at pack/unpack

This commit is contained in:
Joe Thornber
2020-05-22 14:11:48 +01:00
parent b7d20bce48
commit 0e1700fbe9
8 changed files with 410 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
NAME
thin_metadata_pack - pack thin provisioning binary metadata.
SYNOPSIS
thin_metadata_pack [options] -i {device|file} -o {device|file}
DESCRIPTION
thin_metadata_pack and thin_metadata_unpack are used to compress
binary metadata. Useful for support.
thin_metadata_pack compresses the metadata, omitting any metadata blocks that are unused.
This tool cannot be run on live metadata.
OPTIONS
-h, --help Print help and exit.
-V, --version Print version information and exit.
-i, --input {device|file} Input file or device with binary data.
-o, --output {device|file} Output file or device for binary data.
SEE ALSO
thin_dump(8), thin_check(8), thin_restore(8), thin_rmap(8), thin_metadata_size(8)
AUTHOR
Joe Thornber <ejt@redhat.com>

View File

@@ -0,0 +1,28 @@
NAME
thin_metadata_unpack - unpack thin provisioning binary metadata.
SYNOPSIS
thin_metadata_unpack [options] -i {device|file} -o {device|file}
DESCRIPTION
thin_metadata_pack and thin_metadata_unpack are used to compress
binary metadata. Useful for support.
thin_metadata_unpack expands metadata that has previously been packed with
thin_metadata_pack. It outputs a binary file that the rest of the thin
tools can use.
This tool cannot be run on live metadata.
OPTIONS
-h, --help Print help and exit.
-V, --version Print version information and exit.
-i, --input {device|file} Input file or device with binary data.
-o, --output {device|file} Output file or device for binary data.
SEE ALSO
thin_dump(8), thin_check(8), thin_restore(8), thin_rmap(8), thin_metadata_size(8)
AUTHOR
Joe Thornber <ejt@redhat.com>