[dm-devel] Re: [PATCH] udev-016/extras/multipath
Greg KH
greg at kroah.com
Fri Feb 13 09:26:01 UTC 2004
On Mon, Feb 09, 2004 at 11:55:30AM +0100, christophe.varoqui at free.fr wrote:
> Selon christophe.varoqui at free.fr:
>
> > Hello,
> >
> > incremental to udev-016/extras/multipath,
> >
> > * don't rely on the linux symlink in the udev/klibc dir since
> > udev build doesn't use it anymore. This corrects build breakage
> > * remove make_dm_node fn & call. Rely on udev for this.
> >
> > The first patch is to be applied.
> > The second is conditioned by udev dealing correctly with devmap names.
> >
> > For this I can suggest a CALLOUT rule like this :
> > KERNEL="dm-[0-9]*", PROGRAM="/tmp/name_devmap %M %m", NAME="%k",
> > SYMLINK="%c"
> >
> > With name_devmap like :
> > #!/bin/sh
> > /usr/sbin/dmsetup ls|/bin/grep "$1, $2"|/usr/bin/awk '{print $1}'
> >
> > Do you feel like commenting ?
> > cvaroqui
> > --
> >
> ok I coded the suggested tool.
> it works with the following rule :
> KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c"
>
> I don't know if it's right to keep this tools packaged with multipath because
> it's widely more general.
>
> Maybe Joe should merge it in the device-mapper package or provide the
> functionnality through dmsetup ?
>
> Here is the patch
Applied thanks.
I really don't know what to do about where to package this, it's up to
you. I don't know the dm stuff anymore :(
thanks,
greg k-h
More information about the dm-devel
mailing list