diff options
author | Hannes Reinecke <hare@suse.de> | 2009-01-21 14:11:38 +0100 |
---|---|---|
committer | Christophe Varoqui <christophe.varoqui@free.fr> | 2009-04-22 01:23:40 +0200 |
commit | 824e25a09283dabe911e4d119de3ed0612db0aee (patch) | |
tree | fb7619ceefbc73159b3f9e5bb8abb0a6ad569deb /multipathd | |
parent | d65dfa3b01207016dde1e4985fccd6059167a9c5 (diff) | |
download | multipath-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.c | 5 |
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; } /* |