From 1c5dafc906833a4530142057061cd82b9d4a7ca6 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 18 Sep 2012 20:45:47 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/3954 Reviewed-by: Brian Foster Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/mount/fuse/src/fuse-helpers.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/mount/fuse') diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c index 577be2fe..e72669a9 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; -- cgit