From: Joe Thornber <thornber@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: are there usage examples for dm_sm_metadata_{create|open}?
Date: Tue, 6 May 2014 14:17:18 +0100 [thread overview]
Message-ID: <20140506131717.GA11355@debian> (raw)
In-Reply-To: <8A51900D08212F40B3DE22453052F6981D0EEE96@wdscexmb02>
HI John,
On Sat, May 03, 2014 at 02:24:48AM +0000, John Utz wrote:
> So, the stuff in persistent-data sure seems like a good candidate for getting the job done. :-)
It's nice that you're considering using the pd library. Probably the
simplest user of pd is the dm-era target.
> It seems like the first basic action one would want to perform would
> be to create a metadata 'blob' and then at some point in the future
> one would regularly want to open said metadata blob. The
> dm_sm_metadata_create and open functions seem perfect for the job.
> But for some reason, I am unable to find a place in the md directory
> where this is getting used.
Use dm_tm_create_with_sm(), this creates both the transaction manager,
which you *must* have, and the metadata space map. See the comment at
the end of drivers/md/persistent-data/dm-transaction-manager.h
> I would have thought that dm-cache-metadata.c would be using it, but
it doesnt seem to be thinking about this in the same way. It uses
dm_block_manager_create() and __create_persistent_data_objects().
It does, indirectly.
- Joe
next prev parent reply other threads:[~2014-05-06 13:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-03 2:24 are there usage examples for dm_sm_metadata_{create|open}? John Utz
2014-05-06 13:17 ` Joe Thornber [this message]
2014-05-06 15:59 ` John Utz
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=20140506131717.GA11355@debian \
--to=thornber@redhat.com \
--cc=dm-devel@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.