* a question about multipathd and udev
@ 2008-10-21 8:17 dwu
2008-10-21 13:40 ` Konrad Rzeszutek
0 siblings, 1 reply; 2+ messages in thread
From: dwu @ 2008-10-21 8:17 UTC (permalink / raw)
To: dm-devel
If a block device is added, the udev will run the command multipath to
add the path to the mp if possible.
Why multipathd also process a path addition event:
(!strncmp(uev->action, "add", 3)) {
r = uev_add_path(devname, vecs);
goto out;
}
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: a question about multipathd and udev
2008-10-21 8:17 a question about multipathd and udev dwu
@ 2008-10-21 13:40 ` Konrad Rzeszutek
0 siblings, 0 replies; 2+ messages in thread
From: Konrad Rzeszutek @ 2008-10-21 13:40 UTC (permalink / raw)
To: device-mapper development
On Tue, Oct 21, 2008 at 04:17:17PM +0800, dwu wrote:
> If a block device is added, the udev will run the command multipath to add
> the path to the mp if possible.
That depends on your distro. Some of the udev rules do not call the multipath
program but instead pass on the uevent to a netlink socket:
(look for 96-multipath-late.rules):
RUN+="socket:/org/kernel/dm/multipath_event"
and let the multipathd handle the uevent.
> Why multipathd also process a path addition event:
> (!strncmp(uev->action, "add", 3)) {
> r = uev_add_path(devname, vecs);
Take a look at the logic of the uev_add_path. It extracts the block device name
and figures out to what multipath map this device belongs too, runs the appropiate
path checker, and lastly updates (or creates) the device mapper map with the right major:minor,
weights, etc.
> goto out;
> }
>
> Thanks.
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-21 13:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 8:17 a question about multipathd and udev dwu
2008-10-21 13:40 ` Konrad Rzeszutek
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.