diff options
| author | Krishnan Parthasarathi <kp@gluster.com> | 2011-12-24 13:49:52 +0530 | 
|---|---|---|
| committer | Vijay Bellur <vijay@gluster.com> | 2012-02-17 04:50:55 -0800 | 
| commit | acb691f8908049e651fc12ff1cf01e9cf4ddde65 (patch) | |
| tree | 71c9f8a0ee84ddafdcc15607bae473a73d966c32 /xlators/mgmt/glusterd/src/glusterd-volgen.c | |
| parent | b016fe67b6c8957eebc9736b9af9406326800b6d (diff) | |
cli, glusterd : Added support for clear-locks command.
Change-Id: I8e7cd51d6e3dd968cced1ec4115b6811f2ab5c1b
BUG: 789858
Signed-off-by: Krishnan Parthasarathi <kp@gluster.com>
Reviewed-on: http://review.gluster.com/2552
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volgen.c')
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 21 | 
1 files changed, 1 insertions, 20 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index 798ff05650e..fe79ea487b3 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -2871,25 +2871,6 @@ generate_single_transport_client_volfile (glusterd_volinfo_t *volinfo,          return ret;  } -void -get_client_filepath (char *filepath, glusterd_volinfo_t *volinfo, gf_transport_type type) -{ -        char  path[PATH_MAX] = {0,}; -        glusterd_conf_t *priv = NULL; - -        priv = THIS->private; - -        GLUSTERD_GET_VOLUME_DIR (path, volinfo, priv); - -        if ((volinfo->transport_type == GF_TRANSPORT_BOTH_TCP_RDMA) && -            (type == GF_TRANSPORT_RDMA)) -                snprintf (filepath, PATH_MAX, "%s/%s.rdma-fuse.vol", -                          path, volinfo->volname); -        else -                snprintf (filepath, PATH_MAX, "%s/%s-fuse.vol", -                          path, volinfo->volname); -} -  static void  enumerate_transport_reqs (gf_transport_type type, char **types)  { @@ -2927,7 +2908,7 @@ generate_client_volfiles (glusterd_volinfo_t *volinfo)                  if (ret)                          goto out;                  type = transport_str_to_type (types[i]); -                get_client_filepath (filepath, volinfo, type); +                glusterd_get_client_filepath (filepath, volinfo, type);                  ret = generate_single_transport_client_volfile (volinfo,                                                                  filepath,                                                                  dict);  | 
