[Bugs] [Bug 1442724] New: rm -rf <dir> returns ENOTEMPTY even though ls on the mount point returns no files

bugzilla at redhat.com bugzilla at redhat.com
Mon Apr 17 09:23:11 UTC 2017


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

            Bug ID: 1442724
           Summary: rm -rf <dir> returns ENOTEMPTY even though ls on the
                    mount point returns no files
           Product: GlusterFS
           Version: mainline
         Component: distribute
          Assignee: bugs at gluster.org
          Reporter: nbalacha at redhat.com
                CC: bugs at gluster.org



Created attachment 1272007
  --> https://bugzilla.redhat.com/attachment.cgi?id=1272007&action=edit
Script to create a dir, create and rename files inside the dir

Description of problem:
rm -rf <dir> on a directory which contains a lot of stale linkto files will
fail with ENOTEMPTY



Version-Release number of selected component (if applicable):


How reproducible:

Consistently

Steps to Reproduce:
1. Create a 3x1 pure distribute volume and FUSE mount it
2. Run the attached script (test.sh from the mount point). This creates a dir
dir1, creates 1000 files inside the directory and renames the files so as to
create lots of linkto files on the bricks.
3. Run the remove-brick command to start removing the last brick
(vol1-client-2)
Do not commit the remove brick
4. From the mount point, run `rm -rf dir1` 

Actual results:
rm -rf fails with ENOTEMPTY

Expected results:

rm -rf should succeed

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