summaryrefslogtreecommitdiffstats
path: root/xlators/features/gfid-access/src/gfid-access.h
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2013-09-06 14:50:35 +0530
committerAnand Avati <avati@redhat.com>2013-12-10 23:51:33 -0800
commit11b4f3aedfacf2cb29c409765936940271329e73 (patch)
tree19c4d7f5e501f3a2e0ba040fb7d693060116a7a7 /xlators/features/gfid-access/src/gfid-access.h
parentcb44756616f2ef9a6480adf104efa108300b06c3 (diff)
gfid-access: do chown() after creating the new entries
changing the 'frame->root->uid' on the fly is not a good idea as posix-acl xlator on brick process would fail the op. Change-Id: I996b43e4ce6efb04f52949976339dad6eb89bede Signed-off-by: Amar Tumballi <amarts@redhat.com> BUG: 847839 Reviewed-on: http://review.gluster.org/5833 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/features/gfid-access/src/gfid-access.h')
-rw-r--r--xlators/features/gfid-access/src/gfid-access.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/features/gfid-access/src/gfid-access.h b/xlators/features/gfid-access/src/gfid-access.h
index e13c9b7240b..3b74ce1121a 100644
--- a/xlators/features/gfid-access/src/gfid-access.h
+++ b/xlators/features/gfid-access/src/gfid-access.h
@@ -125,4 +125,12 @@ struct ga_private {
};
typedef struct ga_private ga_private_t;
+struct __ga_local {
+ call_frame_t *orig_frame;
+ unsigned int uid;
+ unsigned int gid;
+ loc_t loc;
+};
+typedef struct __ga_local ga_local_t;
+
#endif /* __GFID_ACCESS_H__ */