This is a bug in dht it seems like. It is stripping PHASE1 flags unconditionally.
(gdb) 1212 DHT_STRIP_PHASE1_FLAGS (&local->stbuf); (gdb) p local->stbuf.ia_prot $18 = { suid = 1 '\001', sgid = 1 '\001', <------- sticky = 1 '\001', <------- ......... } (gdb) n 1213 dht_set_fixed_dir_stat (&local->postparent); (gdb) p local->stbuf.ia_prot $19 = { suid = 1 '\001', sgid = 0 '\000', <------- sticky = 0 '\000', <------- ... This is leading to 7777-->4777 Will update bug with same info On Thu, Apr 20, 2017 at 8:58 PM, qingwei wei <tcheng...@gmail.com> wrote: > Hi, > > Posted this in gluster-user mailing list but got no response so far, so i > post in gluster-devel. > > 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@ubuntu16d:/mnt/g310mp# touch test > root@ubuntu16d:/mnt/g310mp# chmod 7777 test > root@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@ubuntu16d:/mnt/g310mp# touch ~/testfile > root@ubuntu16d:/mnt/g310mp# chmod 7777 ~/testfile > root@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@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 > > _______________________________________________ > Gluster-devel mailing list > Gluster-devel@gluster.org > http://lists.gluster.org/mailman/listinfo/gluster-devel > -- Pranith
_______________________________________________ Gluster-devel mailing list Gluster-devel@gluster.org http://lists.gluster.org/mailman/listinfo/gluster-devel