summaryrefslogtreecommitdiff
path: root/libmultipath/devmapper.h
diff options
context:
space:
mode:
authorChristophe Varoqui <root@xa-s05.(none)>2005-11-22 14:16:13 +0100
committerChristophe Varoqui <root@xa-s05.(none)>2005-11-22 14:16:13 +0100
commite6507cff2a662d98dce3f36e04ad2154734c1925 (patch)
treeef8c10ff52f1f5f4ae9f5ad778d71bc0606acfcc /libmultipath/devmapper.h
parente8e0337c347dca2ab39ee1cfd637d311ab7c1476 (diff)
downloadmultipath-tools-e6507cff2a662d98dce3f36e04ad2154734c1925.tar.gz
multipath-tools-e6507cff2a662d98dce3f36e04ad2154734c1925.tar.bz2
multipath-tools-e6507cff2a662d98dce3f36e04ad2154734c1925.zip
[multipathd] use DM rename instead of a remove/create cycle
This patch depends on a kernel patch yet to be merged. Beware. Also fixed callers of dm_info() to check for <=0 as an error instead of just == 0. Edward Goggin, EMC.
Diffstat (limited to 'libmultipath/devmapper.h')
-rw-r--r--libmultipath/devmapper.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libmultipath/devmapper.h b/libmultipath/devmapper.h
index 48b05ec..c7879a7 100644
--- a/libmultipath/devmapper.h
+++ b/libmultipath/devmapper.h
@@ -23,7 +23,5 @@ char * dm_mapname(int major, int minor);
int dm_remove_partmaps (char * mapname);
int dm_get_uuid(char *name, char *uuid);
int dm_get_info (char * mapname, struct dm_info ** dmi);
-
-#if 0
int dm_rename (char * old, char * new);
-#endif
+int dm_get_name(char * uuid, char * type, char * name);