[Gluster-users] fstest for fuse mount gluster

qingwei wei tchengwee at gmail.com
Tue Apr 18 02:23:38 UTC 2017


Hi,

I found this test suite (https://github.com/Hnasar/pjdfstest) for me to
test fuse mount gluster and there is some reported issue from the test. One
of the error is as follow.

When i chmod 7777 to a file in fuse mounted gluster volume. the return stat
value for the file is not 7777 instead of 4777.

root at ubuntu16d:/mnt/g310mp# touch test
root at ubuntu16d:/mnt/g310mp# chmod 7777 test
root at ubuntu16d:/mnt/g310mp# stat test
  File: 'test'
  Size: 0               Blocks: 0          IO Block: 131072 regular empty
file
Device: 29h/41d Inode: 9618589997017543511  Links: 1
Access: (4777/-rwsrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2017-11-30 14:21:23.374871207 +0800
Modify: 2017-11-30 14:21:16.974871000 +0800
Change: 2017-11-30 14:21:23.374871207 +0800
 Birth: -

Performing this operation in normal ext4 system produce correct result.

root at ubuntu16d:/mnt/g310mp# touch ~/testfile
root at ubuntu16d:/mnt/g310mp# chmod 7777 ~/testfile
root at ubuntu16d:/mnt/g310mp# stat ~/testfile
  File: '/home/ubuntu/testfile'
  Size: 0               Blocks: 0          IO Block: 4096   regular empty
file
Device: fc00h/64512d    Inode: 662649      Links: 1
Access: (7777/-rwsrwsrwt)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2017-11-30 14:23:00.518867795 +0800
Modify: 2017-11-30 14:23:00.518867795 +0800
Change: 2017-11-30 14:23:08.742867507 +0800
 Birth: -

Besides 7777, 3777 also an issue. The stat return is 0777.

My OS is Ubuntu 16.04 and my gluster version is 3.10.1 and the it is a
simple volume with default parameter.

root at ubuntu16d:/mnt/g310mp# gluster volume info

Volume Name: g310
Type: Distribute
Volume ID: 114666c6-4884-436a-81a8-2deb3c0923ba
Status: Started
Snapshot Count: 0
Number of Bricks: 1
Transport-type: tcp
Bricks:
Brick1: 192.168.36.130:/mnt/g310brick
Options Reconfigured:
transport.address-family: inet
nfs.disable: on

for me, i seldom use those mode (3777 & 7777) but i cannot say for sure for
others. So is this something i should be concerned about?

Cw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170418/6b2cca8a/attachment.html>


More information about the Gluster-users mailing list