[Bugs] [Bug 1159213] Dist-geo-rep : geo-rep doesn't preserve the ownership while syncing entry operations to slave through mount-broker.
bugzilla at redhat.com
bugzilla at redhat.com
Fri Nov 14 09:53:19 UTC 2014
https://bugzilla.redhat.com/show_bug.cgi?id=1159213
--- Comment #6 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/9083 committed in release-3.6 by Venky
Shankar (vshankar at redhat.com)
------
commit 7fd6c51d7595e433f25859394d13d161d8884c9e
Author: Kotresh HR <khiremat at redhat.com>
Date: Wed Nov 5 12:36:32 2014 +0530
feature/gfid-access: Always send setattr down in overloaded setxattr.
Problem: File ownership is not being preserved for root in geo-rep
mountbroker setup.
Analysis and Cause:
Entry creations for geo-rep is overloaded in ga_setxattr.
It happens in two phase, entry creation followed by setattr
to preserve ownership as in master.
If uid and gid of file being synced is root, setattr was
not being sent down. Since, the file creation happens with
non-root user in mountborker geo-rep setup, if setattr is
not done explicitly, file ownership is not preserved for root.
Solution:
Always pass setattr down in overloaded ga_setxattr.
BUG: 1159213
Change-Id: I0a6ef16333190b069e2ae326721d2b983f6a1a44
Reviewed-on: http://review.gluster.org/9051
Signed-off-by: Kotresh HR <khiremat at redhat.com>
Reviewed-on: http://review.gluster.org/9083
Tested-by: Gluster Build System <jenkins at build.gluster.com>
Reviewed-by: Venky Shankar <vshankar at redhat.com>
Tested-by: Venky Shankar <vshankar at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=pZ8qwDTZ9a&a=cc_unsubscribe
More information about the Bugs
mailing list