[Bugs] [Bug 1529237] File can' t access if wrong file mode is set in gluster filesystem

bugzilla at redhat.com bugzilla at redhat.com
Thu Dec 28 06:52:45 UTC 2017


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

George <george.lian at nokia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Sometimes read failed just  |File can't access if wrong
                   |after write before file     |file mode is set in gluster
                   |closed when try 100 times   |filesystem
                   |in different new files      |



--- Comment #1 from George <george.lian at nokia.com> ---
Sorry, some code error in test code while call system call open
wrong in attachment: open(argv[1], O_CREAT|O_RDWR|S_IRUSR|S_IWUSR) 
should be          : open(argv[1], O_CREAT|O_RDWR,S_IRUSR|S_IWUSR)

But it still seems has some issue while the file access in client with root
privilege, in the brick, the file could be read , but in the client, the file
has no content at all while the really size is "120".

in sn-0 storage brick, the file could be access:
# hexdump testfile.39
0000000 3039 0000 0000 0000 d431 0000 0000 0000
0000010 6d2f 746e 742f 7365 2f74 5f61 325f 742f
0000020 7365 6674 6c69 2e65 3933 0000 0000 0000
0000030 0000 0000 0000 0000 0000 0000 0000 0000
*
0000070 0000 0000 7ffc 0000
0000078
[root at sn-0:/mnt/bricks/test/brick/a__2]


But in mounted gluster fs in client, the file can't be read.

[root at mn-0:/mnt/test/a__2]
# hexdump testfile.39
[root at mn-0:/mnt/test/a__2]
# echo $?
0
[root at mn-0:/mnt/test/a__2]
# ls -l testfile.39
---------T 1 root root 120 Dec 28 07:16 testfile.39
[root at mn-0:/mnt/test/a__2]

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


More information about the Bugs mailing list