summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManikandan Selvaganesh <mselvaga@redhat.com>2016-01-11 18:08:27 +0530
committerRaghavendra Bhat <raghavendra@redhat.com>2016-02-24 08:26:55 -0800
commit52f6c664a27cddad37196c91fbb4c03d7da774b3 (patch)
treed9ff801f005a6e3ec31e7eb56e12861c24879e29
parent74dedc441c2414de0bbfd12cf0eca366bd9b939d (diff)
quota : fix could not start auxiliary mount issuev3.6.9
In versions older than 3.7, when trying to enable quota, the following message appears :"quota: Could not start quota auxiliary mount". It was because, /var/run/gluster was not getting created in cli side. In 3.7, the code has been moved to glusterd and we are making use of sys_mkdir. 3.5 fix -> http://review.gluster.org/#/c/13215/ > Change-Id: Id4360409f76b57c0f676fe2b859f3647c4340575 > BUG: 1117888 > Signed-off-by: Manikandan Selvaganesh <mselvaga@redhat.com> Change-Id: Id4360409f76b57c0f676fe2b859f3647c4340575 BUG: 1302541 Signed-off-by: Manikandan Selvaganesh <mselvaga@redhat.com> Reviewed-on: http://review.gluster.org/13308 Smoke: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> Reviewed-by: Vijaikumar Mallikarjuna <vmallika@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
-rw-r--r--cli/src/cli-cmd-volume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
index 7b83351bf29..34df38742fd 100644
--- a/cli/src/cli-cmd-volume.c
+++ b/cli/src/cli-cmd-volume.c
@@ -1062,7 +1062,7 @@ gf_cli_create_auxiliary_mount (char *volname)
}
GLUSTERD_GET_QUOTA_AUX_MOUNT_PATH (mountdir, volname, "/");
- ret = mkdir (mountdir, 0777);
+ ret = mkdir_p (mountdir, 0700, _gf_true);
if (ret && errno != EEXIST) {
gf_log ("cli", GF_LOG_ERROR, "Failed to create auxiliary mount "
"directory %s. Reason : %s", mountdir,