[dm-devel]Re: [PATCH] udev-016/extras/multipath

christophe.varoqui at free.fr christophe.varoqui at free.fr
Mon Feb 9 08:59:06 UTC 2004


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


-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multipath-0.0.16.3.patch
Type: application/octet-stream
Size: 4729 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20040209/2f6b3061/attachment.obj>


More information about the dm-devel mailing list