[Bugs] [Bug 1529842] Read-only listxattr syscalls seem to translate to non-read-only FOPs

bugzilla at redhat.com bugzilla at redhat.com
Tue Jun 18 13:29:39 UTC 2019


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



--- Comment #1 from Aravinda VK <avishwan at redhat.com> ---
I tested in my setup with fresh volume and changelog enabled. The issue is not
reproducible.

Please try again and provide the reproducer.

[root at f29 ~]# gluster volume create gv1 replica 3 f29.sonne:/bricks/gv1/b1
f29.sonne:/bricks/gv1/b2 f29.sonne:/bricks/gv1/b3 force
[root at f29 ~]# gluster volume start gv1
[root at f29 ~]# gluster volume set gv1 changelog.changelog on
[root at f29 ~]# mount -t glusterfs localhost:gv1 /mnt/gv1
[root at f29 ~]# echo "Hello World" > /mnt/gv1/myfile
[root at f29 ~]# sleep 20  # Sleep 20 to wait for changelog rollover
[root at f29 ~]# for f in `ls ./gluster-changelog-parser
/bricks/gv1/b1/.glusterfs/changelogs/CHANGELOG.*`;do echo
$f;./gluster-changelog-parser $f; done
/bricks/gv1/b1/.glusterfs/changelogs/CHANGELOG.1560862886
E d4b3e7c7-8ef1-4327-8117-0a01af0bf1ed CREATE   33188 0 0
00000000-0000-0000-0000-000000000001/myfile
D d4b3e7c7-8ef1-4327-8117-0a01af0bf1ed 

[root at f29 ~]# getfattr -d -m . /mnt/gv1/myfile 
getfattr: Removing leading '/' from absolute path names
# file: mnt/gv1/myfile
security.selinux="system_u:object_r:fusefs_t:s0"

[root at f29 ~]# sleep 20
[root at f29 ~]# for f in `ls ./gluster-changelog-parser
/bricks/gv1/b1/.glusterfs/changelogs/CHANGELOG.*`;do echo
$f;./gluster-changelog-parser $f; done
/bricks/gv1/b1/.glusterfs/changelogs/CHANGELOG.1560862886
E d4b3e7c7-8ef1-4327-8117-0a01af0bf1ed CREATE   33188 0 0
00000000-0000-0000-0000-000000000001/myfile
D d4b3e7c7-8ef1-4327-8117-0a01af0bf1ed

I used
gluster-changelog-parser(https://github.com/aravindavk/gluster-changelog-parser)
to read Changelogs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Bugs mailing list