diff options
author | Kotresh HR <khiremat@redhat.com> | 2015-09-15 16:56:01 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2015-11-27 04:15:46 -0800 |
commit | 0f4bd0b927f90e70252e613c980bb196395db9ea (patch) | |
tree | 799ada2ca508023180a12f2055b8776285fd1c72 /cli | |
parent | 6c451ec62dedc6fc4b739734eb5eb35d4ecfa6ce (diff) |
features/gfid-access: Fix entry creation via setxattr for geo-rep
GEO-REP INTEROP WITH SHARD FEATURE
Problem:
Geo-replication uses setxattr interface of gfid-access
xlator to create entries and send explicit setattr
after entry creation to set uid and gid. But between
entry creation and setattr, the inode would not be
linked. Hence operation which accesses inode structure
during setattr by any the below xlator fails.
Solution:
Linking inode would seem the obvious solution but,
gfid-access xlator cannot link inodes and maintain
it as it would result in same inode pointing
to two different paths one being virtual .gfid/<gfid>
path and other being actual path.
The solution is to set uid and gid in frame->root->uid
and frame->root->gid respectively from which posix
extracts and sets.
BUG: 1284453
Change-Id: I881c3541f7b056f25ee25b382957d71c821113c1
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Reviewed-on: http://review.gluster.org/12206
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Aravinda VK <avishwan@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-on: http://review.gluster.org/12731
Reviewed-by: Milind Changire <mchangir@redhat.com>
Diffstat (limited to 'cli')
0 files changed, 0 insertions, 0 deletions