From: Mike Christie <michaelc@cs.wisc.edu>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: [RFC] Naming of dm-multipath hardware handler modules
Date: Wed, 01 Aug 2007 11:39:13 -0500 [thread overview]
Message-ID: <46B0B731.1070601@cs.wisc.edu> (raw)
In-Reply-To: <1185913012.4392.46.camel@linux-cxyg>
Dave Wysochanski wrote:
> Do we have an agreed upon scheme?
>
> I noticed in 2.6.23-rc1, the RDAC module is named "dm-mpath-rdac.ko",
> but the source file is "dm-rdac.c". Should we be naming things
Are you sure about that? In linus's tree it is named dm-mpath-rdac.c.
The module that is created is named dm-rdac.ko.
> "dm-mpath-hwhname" everywhere? If so, should we rename dm-emc?
>
> I was not sure exactly what was correct for the HP handler. Currently
> it follows the dm-emc scheme, which is probably wrong.
>
Alasdair, initially wanted the modules and file names to have dm-mpath
prefixes, but userspace for emc is already passing in "emc" and
dm_get_hw_handler does request_module("dm-%s", name) and
__find_hw_handler_type does strcmp(name, hwhi->hwht.name).
So we ended up doing a partial conversion leaving userspace alone, but
changing the filenames to what Alasdair wanted. So rdac got the source
filename dm-mpath-rdac.c, but its module gets the name dm-rdac.ko.
So yeah, I forgot about that in the review, and instead of
obj-$(CONFIG_DM_MULTIPATH_HP) += dm-hp-sw.o
you should do
dm-hw-objs := dm-mpath-hw.o
......
obj-$(CONFIG_DM_MULTIPATH_HP_SW) += dm-hp-sw.o
In the Makefile, and the source filename for should be dm-mpath-hp-sw.c.
And dm-emc.c should probably be changed, although we could probably do
it after the logical unit follow-over cap patch is cleaned up and merged.
next prev parent reply other threads:[~2007-08-01 16:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-31 20:16 [RFC] Naming of dm-multipath hardware handler modules Dave Wysochanski
2007-08-01 16:39 ` Mike Christie [this message]
2007-08-01 16:42 ` Mike Christie
2007-08-01 17:06 ` Mike Christie
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=46B0B731.1070601@cs.wisc.edu \
--to=michaelc@cs.wisc.edu \
--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.