Description of problem: chmod of 7777 and 3777 on fuse mounted Gluster volume not working. When use stat to check the mode, the return result is 4777 and 0777 Version-Release number of selected component (if applicable): Gluster 3.10.1 Ubuntu 16.04 How reproducible: Always Steps to Reproduce: 1. chmod a file in fuse mounted gluster volume to 7777 2. stat the file Actual results: stat returns 4777 Expected results: should return 7777 Additional info:
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
Thanks. We will take a look. Nithya
should https://review.gluster.org/16111 fix this?
This bug reported is against a version of Gluster that is no longer maintained (or has been EOL'd). See https://www.gluster.org/release-schedule/ for the versions currently maintained. As a result this bug is being closed. If the bug persists on a maintained version of gluster or against the mainline gluster repository, request that it be reopened and the Version field be marked appropriately.