[dm-devel] [PATCH] thin_dump: added --device-id, --skip-mappings, and new output --format's

Thanos Makatos thanos.makatos at onapp.com
Tue Mar 15 10:59:15 UTC 2016


On 15 March 2016 at 01:45, Eric Wheeler <dm-devel at lists.ewheeler.net> wrote:
> Hi Joe,
>
> Please review the patch below when you have a moment.  I am interested in
> your feedback, and also interested in having this functionality merged
> upstream.  This was written against thin-provisioning-tools.git tag
> v0.5.6.
>
> We use thin_dump on live dm-thin metadata snapshots all the time.  In our
> case, we want to dump the XML for new (snapshot) volumes instead of
> dumping the entire 16gb metadata device (37.8% used) which takes ~20-30
> minutes instead of ~5 seconds for a single volume with --device-id.

I'm interested in extracting the mappings of a particular device, too.
In fact, I've implemented this (along with extracting the mappings in
binary format) and have only recently opened a PR:
https://github.com/jthornber/thin-provisioning-tools/pull/49. It seems
that we've replicated some work here, I'm not sure whether we're
supposed to send patches to this list or open PR on github.




More information about the dm-devel mailing list