[multipath] remove dead maps
authorChristophe Varoqui <root@xa-s05.(none)>
Mon, 3 Oct 2005 15:46:24 +0000 (17:46 +0200)
committerChristophe Varoqui <root@xa-s05.(none)>
Mon, 3 Oct 2005 15:46:24 +0000 (17:46 +0200)
commit04114b7eb8687c8060214f2c7f8b2ded2daaf2dc
tree58814af76c619b85440d3853a8f97927e7c3aebe
parente32cd0d4c75b79dfb4e8ae08e8d271cb53d9d50c
[multipath] remove dead maps

A map is considered dead, and thus removed from DM, when all its
constituent paths have disappeared from the system (ie sysfs).

When all paths fail, we keep the map, hoping some path can come back
up.

Flush will fail if the map is claimed (mount, ...), notify that.

This policy is rather safe, because :
- multipath is exec'ed only upon "add path events", so maps can magically
  disappear
- claimed maps cannot disappear

This map purge is clearly an interactive maintenance operation.
libmultipath/structs.c
libmultipath/structs.h
multipath/main.c