All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Wheeler <dm-devel@lists.ewheeler.net>
To: Thanos Makatos <thanos.makatos@onapp.com>
Cc: device-mapper development <dm-devel@redhat.com>,
	Joe Thornber <thornber@redhat.com>
Subject: Re: [PATCH] thin_dump: added --device-id, --skip-mappings, and new output --format's
Date: Tue, 15 Mar 2016 17:51:14 +0000 (UTC)	[thread overview]
Message-ID: <alpine.LRH.2.11.1603151735530.19675@mail.ewheeler.net> (raw)
In-Reply-To: <CAM2wQBvGUs=Co=b89Nw_TYN_qBfCZj-6S7sHdinDNHPm_ZS1PA@mail.gmail.com>

On Tue, 15 Mar 2016, Thanos Makatos wrote:

> On 15 March 2016 at 01:45, Eric Wheeler <dm-devel@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.

Interesting, it is neat to see a binary format too.

I think we need to come up with a consistent way to extend attributes 
being passed down into mapping_tree_emitter::visit() by way of 
thin_provisioning::metadata_dump().  What is preferred?

I noticed that caching::metadata_dump() has the same prototype, so do 
those need to remain compatable calls?  

Should we countinue to extend the arguments to metadata_dump() 
as Thanos and I have done, or, should we pop up the mte call to the caller 
and pass a pointer to thin_provisioning::metadata_dump(..., *mte) and let 
the caller configure the mte with setter functions or constructor calls?

I'm open to whatever---just making sure whatever we do stays clean and 
scales for the future.

--
Eric Wheeler

  reply	other threads:[~2016-03-15 17:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-15  1:45 [PATCH] thin_dump: added --device-id, --skip-mappings, and new output --format's Eric Wheeler
2016-03-15 10:59 ` Thanos Makatos
2016-03-15 17:51   ` Eric Wheeler [this message]
2016-03-16  5:42     ` Ming-Hung Tsai
2016-03-16 19:14       ` Eric Wheeler
2016-03-17 15:44   ` Joe Thornber
2016-03-17 15:45 ` Joe Thornber
2016-03-17 22:45   ` Eric Wheeler
2016-03-18  2:04     ` Ming-Hung Tsai
2016-03-18  6:45     ` Ming-Hung Tsai
2016-03-20 15:59     ` Ming-Hung Tsai
2016-03-24 15:35 ` Joe Thornber
2016-03-28  2:51   ` Eric Wheeler
2016-03-28 22:05   ` Eric Wheeler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LRH.2.11.1603151735530.19675@mail.ewheeler.net \
    --to=dm-devel@lists.ewheeler.net \
    --cc=dm-devel@redhat.com \
    --cc=thanos.makatos@onapp.com \
    --cc=thornber@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.