summaryrefslogtreecommitdiff
path: root/multipathd
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2009-01-21 14:11:38 +0100
committerChristophe Varoqui <christophe.varoqui@free.fr>2009-04-22 01:23:40 +0200
commit824e25a09283dabe911e4d119de3ed0612db0aee (patch)
treefb7619ceefbc73159b3f9e5bb8abb0a6ad569deb /multipathd
parentd65dfa3b01207016dde1e4985fccd6059167a9c5 (diff)
downloadmultipath-tools-824e25a09283dabe911e4d119de3ed0612db0aee.tar.gz
multipath-tools-824e25a09283dabe911e4d119de3ed0612db0aee.tar.bz2
multipath-tools-824e25a09283dabe911e4d119de3ed0612db0aee.zip
Fix 'remove' uevent handling
A remove event might be handled after the failed devices have already been purged from the multipath structure, so a failure here is not an error. Signed-off-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'multipathd')
-rw-r--r--multipathd/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/multipathd/main.c b/multipathd/main.c
index 1eac554..f2848fb 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -478,8 +478,9 @@ ev_remove_path (char * devname, struct vectors * vecs)
pp = find_path_by_dev(vecs->pathvec, devname);
if (!pp) {
- condlog(0, "%s: spurious uevent, path not in pathvec", devname);
- return 1;
+ /* Not an error; path might have been purged earlier */
+ condlog(0, "%s: path already removed", devname);
+ return 0;
}
/*