[multipath] claimed path handling overall
authorChristophe Varoqui <root@xa-s05.(none)>
Sun, 23 Oct 2005 20:51:40 +0000 (22:51 +0200)
committerChristophe Varoqui <root@xa-s05.(none)>
Sun, 23 Oct 2005 20:51:40 +0000 (22:51 +0200)
commite2eace27935d355e1985a27b1432716d4a2dc1f9
treeb204fd478e5abe7d3842baa00159af0d1b216dd8
parentde0a13c33040271af0dd6e5aeed2147e57ed4ede
[multipath] claimed path handling overall

Detecting path claims during the discovery, and all paths, exposes
us to open(..., O_EXCL) collisions. Paths could appear as claimed when
they are not actually.

Visible effect is, during a udev add storm (driver loading), rarely,
a map would not appear when it should have. This was reported by
Maxim Kozover.

This patch remove all pp->claimed usage and allows DM_DEVICE_CREATE to
fail when loading a map with claimed paths (with libdevmapper logging
shut). But cleanup the mess on error.
libmultipath/devmapper.c
libmultipath/devmapper.h
libmultipath/discovery.c
libmultipath/discovery.h
libmultipath/print.c
libmultipath/print.h
libmultipath/structs.h
multipath/main.c