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:
a1566b4
)
[libmultipath] message when a map can't be flush because in use
author
Christophe Varoqui
<root@xa-s05.(none)>
Sun, 23 Oct 2005 18:51:47 +0000
(20:51 +0200)
committer
Christophe Varoqui
<root@xa-s05.(none)>
Sun, 23 Oct 2005 18:51:47 +0000
(20:51 +0200)
libmultipath/devmapper.c
patch
|
blob
|
history
diff --git
a/libmultipath/devmapper.c
b/libmultipath/devmapper.c
index
20ecabb
..
1d62b31
100644
(file)
--- a/
libmultipath/devmapper.c
+++ b/
libmultipath/devmapper.c
@@
-387,8
+387,10
@@
dm_flush_map (char * mapname, char * type)
if (dm_remove_partmaps(mapname))
return 1;
- if (dm_get_opencount(mapname))
+ if (dm_get_opencount(mapname)) {
+ condlog(2, "%s: map in use", mapname);
return 1;
+ }
r = dm_simplecmd(DM_DEVICE_REMOVE, mapname);