[libmultipath] rename dm_reinstate() to dm_reinstate_path()
authorChristophe Varoqui <root@xa-s05.(none)>
Mon, 31 Oct 2005 08:54:31 +0000 (09:54 +0100)
committerChristophe Varoqui <root@xa-s05.(none)>
Mon, 31 Oct 2005 08:54:31 +0000 (09:54 +0100)
More explicit, and in line with dm_fail_path()

libmultipath/devmapper.c
libmultipath/devmapper.h
multipath/main.c
multipathd/cli_handlers.c
multipathd/main.c

index f8adb91..2544f95 100644 (file)
@@ -508,7 +508,7 @@ dm_fail_path(char * mapname, char * path)
 }
 
 int
-dm_reinstate(char * mapname, char * path)
+dm_reinstate_path(char * mapname, char * path)
 {
        char message[32];
 
index e8d5065..ad094eb 100644 (file)
@@ -11,7 +11,7 @@ int dm_type(char *, char *);
 int dm_flush_map (char *, char *);
 int dm_flush_maps (char *);
 int dm_fail_path(char * mapname, char * path);
-int dm_reinstate(char * mapname, char * path);
+int dm_reinstate_path(char * mapname, char * path);
 int dm_queue_if_no_path(char *mapname, int enable);
 int dm_switchgroup(char * mapname, int index);
 int dm_enablegroup(char * mapname, int index);
index 87dbfae..98bdda9 100644 (file)
@@ -579,7 +579,7 @@ reinstate_paths (struct multipath * mpp)
                                continue;
 
                        if (pp->dmstate == PSTATE_FAILED) {
-                               if (dm_reinstate(mpp->alias, pp->dev_t))
+                               if (dm_reinstate_path(mpp->alias, pp->dev_t))
                                        condlog(0, "error reinstating %s",
                                                pp->dev);
                        }
index aa6df90..452038a 100644 (file)
@@ -144,7 +144,7 @@ cli_reinstate(void * v, char ** reply, int * len, void * data)
        if (!pp || !pp->mpp || !pp->mpp->alias)
                return 1;
 
-       return dm_reinstate(pp->mpp->alias, pp->dev_t);
+       return dm_reinstate_path(pp->mpp->alias, pp->dev_t);
 }
 
 int
index 58a0e63..9ec3089 100644 (file)
@@ -1109,7 +1109,7 @@ reinstate_path (struct path * pp)
        if (!pp->mpp)
                return;
 
-       if (dm_reinstate(pp->mpp->alias, pp->dev_t))
+       if (dm_reinstate_path(pp->mpp->alias, pp->dev_t))
                condlog(0, "%s: reinstate failed", pp->dev_t);
        else {
                condlog(2, "%s: reinstated", pp->dev_t);