summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/src/fuse-helpers.c
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2012-09-18 20:45:47 +0530
committerAnand Avati <avati@redhat.com>2012-09-19 15:21:12 -0700
commit1c5dafc906833a4530142057061cd82b9d4a7ca6 (patch)
treee7520239609b9aa9754c3ae66b7de428c0bc9dec /xlators/mount/fuse/src/fuse-helpers.c
parent08bad02bba6d934cc03d50c0bbcce2370ec66416 (diff)
fuse: override 'gid-timeout' option to disable aux gid compatibility
while mounting -o gid-timeout=-1 will be treated as disabling aux-gid Change-Id: I85c350868a8cc4a43f5e5aec9427222580da675b BUG: 835834 Signed-off-by: Amar Tumballi <amarts@redhat.com> Reviewed-on: http://review.gluster.org/3954 Reviewed-by: Brian Foster <bfoster@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mount/fuse/src/fuse-helpers.c')
-rw-r--r--xlators/mount/fuse/src/fuse-helpers.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c
index 577be2fef4e..e72669a9e99 100644
--- a/xlators/mount/fuse/src/fuse-helpers.c
+++ b/xlators/mount/fuse/src/fuse-helpers.c
@@ -245,6 +245,11 @@ static void get_groups(fuse_private_t *priv, call_frame_t *frame)
const gid_list_t *gl;
gid_list_t agl;
+ if (-1 == priv->gid_cache_timeout) {
+ frame->root->ngrps = 0;
+ return;
+ }
+
if (!priv->gid_cache_timeout) {
frame_fill_groups(frame);
return;