summaryrefslogtreecommitdiff
path: root/multipathd
diff options
context:
space:
mode:
authorChristophe Varoqui <christophe.varoqui@free.fr>2008-10-11 02:00:22 +0200
committerChristophe Varoqui <christophe.varoqui@free.fr>2008-10-11 02:00:22 +0200
commit507227ffc4731bd10ef9850048d12e454abd3bb0 (patch)
tree30e2b47284a543b64ef245d02311d6ab53c3247f /multipathd
parentc1cbbb91cb3ef9fe40a1f63d65edf381fad82b0b (diff)
downloadmultipath-tools-507227ffc4731bd10ef9850048d12e454abd3bb0.tar.gz
multipath-tools-507227ffc4731bd10ef9850048d12e454abd3bb0.tar.bz2
multipath-tools-507227ffc4731bd10ef9850048d12e454abd3bb0.zip
[lib] add offlined paths logic
o don't check offlined paths Avoids log polution and useless work o display offlined status This information is quite useful because offlining can be done by the kernel as a response to an unsane situation, but un-offlining is not automatic. This helps the offlining being aknowledged by admins.
Diffstat (limited to 'multipathd')
-rw-r--r--multipathd/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/multipathd/main.c b/multipathd/main.c
index 7879758..87f878c 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -875,7 +875,8 @@ check_path (struct vectors * vecs, struct path * pp)
*/
checker_set_async(&pp->checker);
- newstate = checker_check(&pp->checker);
+ if (!path_offline(pp))
+ newstate = checker_check(&pp->checker);
if (newstate < 0) {
condlog(2, "%s: unusable path", pp->dev);