projects
/
multipath-tools
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd7e7ee
)
Stop annoying prio_lookup warning messages
author
Benjamin Marzinski
<bmarzins@redhat.com>
Thu, 2 May 2013 21:46:35 +0000
(16:46 -0500)
committer
Christophe Varoqui
<christophe.varoqui@opensvc.com>
Mon, 6 May 2013 19:42:15 +0000
(21:42 +0200)
Multipath shouldn't try to look up its prioritizer if it doesn't have
one. Doing so just causes annoying warning messages.
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
libmultipath/prio.c
patch
|
blob
|
history
diff --git
a/libmultipath/prio.c
b/libmultipath/prio.c
index
8e6b93e
..
186cc4d
100644
(file)
--- a/
libmultipath/prio.c
+++ b/
libmultipath/prio.c
@@
-162,7
+162,10
@@
void prio_put (struct prio * dst)
if (!dst)
return;
- src = prio_lookup(dst->name);
+ if (!strlen(dst->name))
+ src = NULL;
+ else
+ src = prio_lookup(dst->name);
memset(dst, 0x0, sizeof(struct prio));
free_prio(src);
}