From: Mike Snitzer <snitzer@redhat.com>
To: John Utz <John.Utz@wdc.com>
Cc: "dm-devel@redhat.com" <dm-devel@redhat.com>
Subject: Re: device mapper target vs personality, how do you decide to pick one or the other?
Date: Fri, 11 Jul 2014 20:36:20 -0400 [thread overview]
Message-ID: <20140712003620.GA10126@redhat.com> (raw)
In-Reply-To: <8A51900D08212F40B3DE22453052F69839C45AFA@wdscexmb02>
On Fri, Jul 11 2014 at 5:56pm -0400,
John Utz <John.Utz@wdc.com> wrote:
> Hi Mike
>
> tnx so much for the prompt response!
>
> sorry i wasnt clear enuf, example of the 'personality code' that i was
> writing about below.
...
> FOR EXAMPLE, here is a little bit of linear.c that contains it:
>
> static struct md_personality linear_personality =
> {
> .name = "linear",
> .level = LEVEL_LINEAR,
> .owner = THIS_MODULE,
> .make_request = linear_make_request,
> .run = linear_run,
> .stop = linear_stop,
> .status = linear_status,
> .hot_add_disk = linear_add,
> .size = linear_size,
> };
>
> static int __init linear_init (void)
> {
> return register_md_personality (&linear_personality);
> }
>
> static void linear_exit (void)
> {
> unregister_md_personality (&linear_personality);
> }
The above is MD raid code. So what you're talking about are the
different MD raid personalities.
> > so, based on this speculation, i *think* i should be using the target
> > construct for the new device mapper module that i am currently
> > coding.
> >
> > am i correct?
>
> Probably.
The target construct is provided by DM. You haven;t said what you're
looking to do but if it is remapping IO and has nothing to do with raid
then you'd probably want to develop a new DM target.
next prev parent reply other threads:[~2014-07-12 0:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-11 21:28 device mapper target vs personality, how do you decide to pick one or the other? John Utz
2014-07-11 21:51 ` Mike Snitzer
2014-07-11 21:56 ` John Utz
2014-07-12 0:36 ` Mike Snitzer [this message]
2014-07-14 17:15 ` John Utz
2014-07-14 22:08 ` John Utz
2014-07-14 11:25 ` Bryn M. Reeves
2014-07-14 17:00 ` 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=20140712003620.GA10126@redhat.com \
--to=snitzer@redhat.com \
--cc=John.Utz@wdc.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.