diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2015-01-12 12:50:50 +0530 |
---|---|---|
committer | Raghavendra Bhat <raghavendra@redhat.com> | 2015-02-11 01:49:02 -0800 |
commit | d9125608b33181fed8052ff5f867b2cb5c4e679f (patch) | |
tree | fa06e77b84a1e4597c768a26be219ba0c1bfbd0a /xlators/mgmt/glusterd/src/glusterd-utils.c | |
parent | 258f38c76f5ad816450c826becfddbe3cc91f874 (diff) |
storage/posix: Set gfid after all xattrs, uid/gid are set
Backport of http://review.gluster.com/9434
Problem:
When a new entry is created gfid is set even before uid/gid, xattrs
are set on the entry. This can lead to dht/afr healing that file/dir
with the uid/gid it sees just after the gfid is set, i.e. root/root.
Sometimes setattr/setxattr are failing on that file/dir.
Fix:
Set gfid of the file/directory only after uid/gid, xattrs are setup
properly. Readdirp, lookup either wait for the gfid to be assigned
to the entry or not update the in-memory inode ctx in posix-acl
xlator which was producing lot EACCESS/EPERM to the application
or dht/afr self-heals.
BUG: 1184527
Change-Id: Ia6dfd492e03db2275665e7f63260611b310e38e6
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/9471
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
0 files changed, 0 insertions, 0 deletions