[Bugs] [Bug 1181367] New: rmdir changes permission of directory when rmdir fails with ENOTEMPTY

bugzilla at redhat.com bugzilla at redhat.com
Tue Jan 13 02:12:18 UTC 2015


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

            Bug ID: 1181367
           Summary: rmdir changes permission of directory when rmdir fails
                    with ENOTEMPTY
           Product: GlusterFS
           Version: mainline
         Component: distribute
          Assignee: bugs at gluster.org
          Reporter: pkarampu at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:
When only one distribute subvolume is present rmdir failure results in change
of the uid/gid of the directory to root:root. This bug exists even for multiple
subvolumes of dht.

Version-Release number of selected component (if applicable):
These were the steps which created the issue for me, I added logs in afr to
confirm that setattrs with uid, gid as 0 are coming with valid flags set to
everything in stat which should have never come.

Create a plain replicate volume 'r2'
disable stat-prefetch
Create two fuse-mounts with --attribute-timeout=0 and --entry-timeout=0
chown <normal-user>:<normal-user> <mnt> #On my laptop the command was 'chown
pk1:pk1 /mnt/r2'
On both the mounts execute the following command:
while true; do mkdir d1; touch d1/a; rm d1/a; rmdir d1; done

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

-- 
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