[Bugs] [Bug 1577845] Geo-rep: faulty session due to OSError: [Errno 95] Operation not supported

bugzilla at redhat.com bugzilla at redhat.com
Mon Jun 11 10:17:58 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1577845

Worker Ant <bugzilla-bot at gluster.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|POST                        |MODIFIED



--- Comment #5 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/20017 committed in release-3.12 by "jiffin
tony Thottan" <jthottan at redhat.com> with a commit message- geo-rep: Fix syncing
of symlink

Problem:
If symlink is created on master pointing
to current directory (e.g symlink -> ".") with
non root uid or gid, geo-rep worker crashes
with ENOTSUP.

Cause:
Geo-rep creates the symlink on slave and
fixes the uid and gid using chown cmd.
os.chown dereferences the symlink which is
pointing to ".gfid" which is not supported.
Note that geo-rep operates on aux-gfid-mount
(e.g. "/mnt/.gfid/<gfid-of-symlink-file>").

Solution:
The uid or gid change is acutally on symlink
file. So use os.lchown, i.e, don't deference.

Backport of 
> BUG: 1567209
> Patch: https://review.gluster.org/20017

BUG: 1577845
fixes: bz#1577845
Change-Id: I63575fc589d71f987bef1d350c030987738c78ad
Signed-off-by: Kotresh HR <khiremat 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=NlBe17F057&a=cc_unsubscribe


More information about the Bugs mailing list