projects
/
platform
/
upstream
/
multipath-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c65000e
)
[multipathd] "add map" cli command to accept map names as param
author
Christophe Varoqui
<root@xa-s05.(none)>
Mon, 31 Oct 2005 11:12:05 +0000
(12:12 +0100)
committer
Christophe Varoqui
<root@xa-s05.(none)>
Mon, 31 Oct 2005 11:12:05 +0000
(12:12 +0100)
multipathd/main.c
patch
|
blob
|
history
diff --git
a/multipathd/main.c
b/multipathd/main.c
index
7d30d09
..
7e0bb9c
100644
(file)
--- a/
multipathd/main.c
+++ b/
multipathd/main.c
@@
-725,10
+725,10
@@
uev_remove_map (char * devname, struct vectors * vecs)
int minor;
struct multipath * mpp;
- if (sscanf(devname, "dm-%d", &minor)
!
= 1)
-
return 1
;
-
-
mpp = find_mp_by_minor(vecs->mpvec, minor
);
+ if (sscanf(devname, "dm-%d", &minor)
=
= 1)
+
mpp = find_mp_by_minor(vecs->mpvec, minor)
;
+ else
+
mpp = find_mp_by_alias(vecs->mpvec, devname
);
if (!mpp) {
condlog(3, "%s: devmap not registered, can't remove",