2017-08-25 15:42:18 +05:30
|
|
|
(library
|
|
|
|
(scenario-string-constants)
|
|
|
|
|
|
|
|
(export thin-check-help
|
|
|
|
thin-restore-outfile-too-small-text
|
|
|
|
thin-restore-help
|
2017-08-25 15:56:09 +05:30
|
|
|
thin-rmap-help
|
2017-08-30 15:09:58 +05:30
|
|
|
thin-delta-help
|
2020-05-26 15:25:03 +05:30
|
|
|
thin-metadata-pack-help
|
|
|
|
thin-metadata-unpack-help
|
2017-08-25 15:56:09 +05:30
|
|
|
|
|
|
|
cache-check-help
|
2017-08-25 19:33:50 +05:30
|
|
|
cache-restore-help
|
|
|
|
cache-restore-outfile-too-small-text
|
|
|
|
cache-dump-help
|
2017-08-30 14:41:45 +05:30
|
|
|
cache-metadata-size-help
|
2017-08-30 18:59:36 +05:30
|
|
|
|
|
|
|
era-check-help
|
2017-08-30 19:44:10 +05:30
|
|
|
era-restore-help
|
2017-08-25 15:56:09 +05:30
|
|
|
)
|
2017-08-25 15:42:18 +05:30
|
|
|
|
|
|
|
(import (rnrs))
|
|
|
|
|
|
|
|
;; These long string constants really confuse vim and mess up Paredit mode.
|
|
|
|
;; So moving into a separate file.
|
|
|
|
(define thin-check-help
|
2017-10-05 17:52:28 +05:30
|
|
|
"Usage: thin_check [options] {device|file}
|
2017-08-25 15:42:18 +05:30
|
|
|
Options:
|
|
|
|
{-q|--quiet}
|
|
|
|
{-h|--help}
|
|
|
|
{-V|--version}
|
2020-06-09 18:49:59 +05:30
|
|
|
{-m|--metadata-snap}
|
2017-10-05 17:52:28 +05:30
|
|
|
{--override-mapping-root}
|
2017-08-25 15:42:18 +05:30
|
|
|
{--clear-needs-check-flag}
|
|
|
|
{--ignore-non-fatal-errors}
|
|
|
|
{--skip-mappings}
|
|
|
|
{--super-block-only}")
|
|
|
|
|
|
|
|
(define thin-restore-outfile-too-small-text
|
|
|
|
"Output file too small.
|
|
|
|
|
|
|
|
The output file should either be a block device,
|
|
|
|
or an existing file. The file needs to be large
|
|
|
|
enough to hold the metadata.")
|
|
|
|
|
|
|
|
(define thin-restore-help
|
|
|
|
"Usage: thin_restore [options]
|
|
|
|
Options:
|
|
|
|
{-h|--help}
|
|
|
|
{-i|--input} <input xml file>
|
|
|
|
{-o|--output} <output device or file>
|
2019-10-28 17:22:21 +05:30
|
|
|
{--transaction-id} <natural>
|
|
|
|
{--data-block-size} <natural>
|
|
|
|
{--nr-data-blocks} <natural>
|
2017-08-25 15:42:18 +05:30
|
|
|
{-q|--quiet}
|
|
|
|
{-V|--version}")
|
|
|
|
|
|
|
|
(define thin-rmap-help
|
|
|
|
"Usage: thin_rmap [options] {device|file}
|
|
|
|
Options:
|
|
|
|
{-h|--help}
|
|
|
|
{-V|--version}
|
|
|
|
{--region <block range>}*
|
|
|
|
Where:
|
|
|
|
<block range> is of the form <begin>..<one-past-the-end>
|
|
|
|
for example 5..45 denotes blocks 5 to 44 inclusive, but not block 45")
|
2017-08-25 15:56:09 +05:30
|
|
|
|
2017-08-30 15:09:58 +05:30
|
|
|
(define thin-delta-help
|
|
|
|
"Usage: thin_delta [options] <device or file>
|
|
|
|
Options:
|
|
|
|
{--thin1, --snap1}
|
|
|
|
{--thin2, --snap2}
|
|
|
|
{-m, --metadata-snap} [block#]
|
|
|
|
{--verbose}
|
|
|
|
{-h|--help}
|
|
|
|
{-V|--version}")
|
|
|
|
|
2020-05-26 15:25:03 +05:30
|
|
|
(define thin-metadata-pack-help
|
2020-07-03 17:43:59 +05:30
|
|
|
"thin_metadata_pack 0.9.0-rc2
|
2020-06-09 17:33:39 +05:30
|
|
|
Produces a compressed file of thin metadata. Only packs metadata blocks that are actually used.
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
thin_metadata_pack -i <DEV> -o <FILE>
|
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
-V, --version Prints version information
|
|
|
|
|
|
|
|
OPTIONS:
|
|
|
|
-i <DEV> Specify thinp metadata binary device/file
|
|
|
|
-o <FILE> Specify packed output file")
|
2020-05-26 15:25:03 +05:30
|
|
|
|
|
|
|
(define thin-metadata-unpack-help
|
2020-07-03 17:43:59 +05:30
|
|
|
"thin_metadata_unpack 0.9.0-rc2
|
2020-06-09 17:33:39 +05:30
|
|
|
Unpack a compressed file of thin metadata.
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
thin_metadata_unpack -i <DEV> -o <FILE>
|
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
-V, --version Prints version information
|
|
|
|
|
|
|
|
OPTIONS:
|
|
|
|
-i <DEV> Specify thinp metadata binary device/file
|
|
|
|
-o <FILE> Specify packed output file")
|
2020-05-26 15:25:03 +05:30
|
|
|
|
2017-08-25 15:56:09 +05:30
|
|
|
(define cache-check-help
|
|
|
|
"Usage: cache_check [options] {device|file}
|
|
|
|
Options:
|
|
|
|
{-q|--quiet}
|
|
|
|
{-h|--help}
|
|
|
|
{-V|--version}
|
|
|
|
{--clear-needs-check-flag}
|
|
|
|
{--super-block-only}
|
|
|
|
{--skip-mappings}
|
|
|
|
{--skip-hints}
|
|
|
|
{--skip-discards}")
|
|
|
|
|
2017-08-25 19:33:50 +05:30
|
|
|
(define cache-restore-help
|
|
|
|
"Usage: cache_restore [options]
|
|
|
|
Options:
|
|
|
|
{-h|--help}
|
|
|
|
{-i|--input} <input xml file>
|
|
|
|
{-o|--output} <output device or file>
|
|
|
|
{-q|--quiet}
|
|
|
|
{--metadata-version} <1 or 2>
|
|
|
|
{-V|--version}
|
|
|
|
|
|
|
|
{--debug-override-metadata-version} <integer>
|
|
|
|
{--omit-clean-shutdown}")
|
|
|
|
|
|
|
|
(define cache-restore-outfile-too-small-text
|
|
|
|
"Output file too small.
|
|
|
|
|
|
|
|
The output file should either be a block device,
|
|
|
|
or an existing file. The file needs to be large
|
|
|
|
enough to hold the metadata.")
|
|
|
|
|
|
|
|
(define cache-dump-help
|
|
|
|
"Usage: cache_dump [options] {device|file}
|
|
|
|
Options:
|
|
|
|
{-h|--help}
|
|
|
|
{-o <xml file>}
|
|
|
|
{-V|--version}
|
|
|
|
{--repair}")
|
2017-08-30 14:41:45 +05:30
|
|
|
|
|
|
|
(define cache-metadata-size-help
|
2017-09-20 21:43:03 +05:30
|
|
|
"Usage: cache_metadata_size [options]
|
2017-08-30 14:41:45 +05:30
|
|
|
Options:
|
|
|
|
{-h|--help}
|
|
|
|
{-V|--version}
|
|
|
|
{--block-size <sectors>}
|
|
|
|
{--device-size <sectors>}
|
|
|
|
{--nr-blocks <natural>}
|
2017-09-20 21:43:03 +05:30
|
|
|
{--max-hint-width <nr bytes>}
|
2017-08-30 14:41:45 +05:30
|
|
|
|
|
|
|
These all relate to the size of the fast device (eg, SSD), rather
|
|
|
|
than the whole cached device.")
|
2017-08-30 15:09:58 +05:30
|
|
|
|
2017-08-30 18:59:36 +05:30
|
|
|
(define era-check-help
|
|
|
|
"Usage: era_check [options] {device|file}
|
|
|
|
Options:
|
|
|
|
{-q|--quiet}
|
|
|
|
{-h|--help}
|
|
|
|
{-V|--version}
|
|
|
|
{--super-block-only}")
|
2017-08-30 19:44:10 +05:30
|
|
|
|
|
|
|
(define era-restore-help
|
|
|
|
"Usage: era_restore [options]
|
|
|
|
Options:
|
|
|
|
{-h|--help}
|
|
|
|
{-i|--input} <input xml file>
|
|
|
|
{-o|--output} <output device or file>
|
|
|
|
{-q|--quiet}
|
|
|
|
{-V|--version}")
|
2017-08-25 15:42:18 +05:30
|
|
|
)
|