[dm-devel] [PATCH] thin_dump: added --device-id, --skip-mappings, and new output --format's
Ming-Hung Tsai
mingnus at gmail.com
Sun Mar 20 15:59:09 UTC 2016
2016-03-18 6:45 GMT+08:00 Eric Wheeler <dm-devel at lists.ewheeler.net>:
>
> On Thu, 17 Mar 2016, Joe Thornber wrote:
>
>> If you're skipping the mappings does the new thin_ls provide enough
>> information for you?
>
> Our primary need is the ability to specify --device-id in the o:L:d output
> format (old_format.cc) with mappings. Our nightly dumps now take 50
> seconds instead of 40 minutes since we only dump the dev_id's that we
> need.
I think that the --device-id option is required for thin_dump, but the
necessity of --skip-mappings could be discussed. If thin_ls supports
--device-id, then thin_dump might not require --skip-mappings.
I put my code here for reference (based on v0.7-devel)
https://github.com/mingnus/thin-provisioning-tools/commits/v0.7-thin_dump-enhancement
I borrow the option name "--skip-mappings" and function name
"set_skip_mappings" from Eric, since that they sounds more clear.
Build method:
# autoconf; ./configure --enable-dev-tools; make
My use cases:
# thin_dump --device-id=<dev_id> --format=<f> [--skip-mappings]
Ming-Hung Tsai
More information about the dm-devel
mailing list