diff options
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-ops.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c index af1bd6d70d6..fe5d4c8e348 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c @@ -2848,11 +2848,8 @@ glusterd_clearlocks_send_cmd (glusterd_volinfo_t *volinfo, char *cmd, int err_len, char *mntpt) { int ret = -1; - glusterd_conf_t *priv = NULL; char abspath[PATH_MAX] = {0, }; - priv = THIS->private; - snprintf (abspath, sizeof (abspath), "%s/%s", mntpt, path); ret = sys_lgetxattr (abspath, cmd, result, PATH_MAX); if (ret < 0) { @@ -2871,9 +2868,6 @@ int glusterd_clearlocks_rmdir_mount (glusterd_volinfo_t *volinfo, char *mntpt) { int ret = -1; - glusterd_conf_t *priv = NULL; - - priv = THIS->private; ret = sys_rmdir (mntpt); if (ret) { @@ -2919,12 +2913,9 @@ int glusterd_clearlocks_create_mount (glusterd_volinfo_t *volinfo, char **mntpt) { int ret = -1; - glusterd_conf_t *priv = NULL; char template[PATH_MAX] = {0,}; char *tmpl = NULL; - priv = THIS->private; - snprintf (template, sizeof (template), "/tmp/%s.XXXXXX", volinfo->volname); tmpl = mkdtemp (template); @@ -2997,7 +2988,6 @@ glusterd_clearlocks_get_local_client_ports (glusterd_volinfo_t *volinfo, char **xl_opts) { glusterd_brickinfo_t *brickinfo = NULL; - glusterd_conf_t *priv = NULL; char brickname[PATH_MAX] = {0,}; int index = 0; int ret = -1; @@ -3011,8 +3001,6 @@ glusterd_clearlocks_get_local_client_ports (glusterd_volinfo_t *volinfo, goto out; } - priv = THIS->private; - index = -1; cds_list_for_each_entry (brickinfo, &volinfo->bricks, brick_list) { index++; |