summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-10-07 06:43:44 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-07 07:22:09 -0700
commit6215731b42a4149e78fb56cb62c2f2dc571ea2a5 (patch)
tree9e71a9416c6beea1480b559ec5ce9117f6ccaada /xlators
parent0b1197defa255ee533e568c9534bc6a5b5aadc29 (diff)
mount/fuse: Handle FATTR_MODE flag properly.
Handle the FATTR_MODE flag in fattr_to_gf_set_attr. Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 146 (Add setattr FOP) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index e9eed7c0233..e53f6809033 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -1109,6 +1109,9 @@ fattr_to_gf_set_attr (int32_t valid)
{
int32_t gf_valid = 0;
+ if (valid & FATTR_MODE)
+ gf_valid |= GF_SET_ATTR_MODE;
+
if (valid & FATTR_UID)
gf_valid |= GF_SET_ATTR_UID;