[libmultipath] message when a map can't be flush because in use
authorChristophe Varoqui <root@xa-s05.(none)>
Sun, 23 Oct 2005 18:51:47 +0000 (20:51 +0200)
committerChristophe Varoqui <root@xa-s05.(none)>
Sun, 23 Oct 2005 18:51:47 +0000 (20:51 +0200)
libmultipath/devmapper.c

index 20ecabb..1d62b31 100644 (file)
@@ -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);