* [RFC] Naming of dm-multipath hardware handler modules
@ 2007-07-31 20:16 Dave Wysochanski
2007-08-01 16:39 ` Mike Christie
0 siblings, 1 reply; 4+ messages in thread
From: Dave Wysochanski @ 2007-07-31 20:16 UTC (permalink / raw)
To: dm-devel
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
"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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC] Naming of dm-multipath hardware handler modules
2007-07-31 20:16 [RFC] Naming of dm-multipath hardware handler modules Dave Wysochanski
@ 2007-08-01 16:39 ` Mike Christie
2007-08-01 16:42 ` Mike Christie
0 siblings, 1 reply; 4+ messages in thread
From: Mike Christie @ 2007-08-01 16:39 UTC (permalink / raw)
To: device-mapper development
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.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [RFC] Naming of dm-multipath hardware handler modules
2007-08-01 16:39 ` Mike Christie
@ 2007-08-01 16:42 ` Mike Christie
2007-08-01 17:06 ` Mike Christie
0 siblings, 1 reply; 4+ messages in thread
From: Mike Christie @ 2007-08-01 16:42 UTC (permalink / raw)
To: device-mapper development
Mike Christie wrote:
> And dm-emc.c should probably be changed,
Oops scratch that. I am not sure. I think we talked about that and I was
not sure if there was going to be some userspcae bits like initrd tools
that might be looking for dm-emc instead of dm-mpath-emc. And well, I
was not sure if having dm-rdac be named dm-mpath-rdac might break tools
too, but I guess Alasdair was convinced it would be ok or he would not
have asked for the change.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC] Naming of dm-multipath hardware handler modules
2007-08-01 16:42 ` Mike Christie
@ 2007-08-01 17:06 ` Mike Christie
0 siblings, 0 replies; 4+ messages in thread
From: Mike Christie @ 2007-08-01 17:06 UTC (permalink / raw)
To: device-mapper development
Mike Christie wrote:
> Mike Christie wrote:
>> And dm-emc.c should probably be changed,
>
> Oops scratch that. I am not sure. I think we talked about that and I was
> not sure if there was going to be some userspcae bits like initrd tools
> that might be looking for dm-emc instead of dm-mpath-emc. And well, I
> was not sure if having dm-rdac be named dm-mpath-rdac might break tools
> too, but I guess Alasdair was convinced it would be ok or he would not
> have asked for the change.
>
Actually scrach that :) we should change dm-emc.c since we make the
module name like the old style. I was thinking about some of the other
alternatives that were brought up.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-01 17:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-31 20:16 [RFC] Naming of dm-multipath hardware handler modules Dave Wysochanski
2007-08-01 16:39 ` Mike Christie
2007-08-01 16:42 ` Mike Christie
2007-08-01 17:06 ` Mike Christie
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.