[Bugs] [Bug 1695399] New: With parallel-readdir enabled, deleting a directory containing stale linkto files fails with "Directory not empty"

bugzilla at redhat.com bugzilla at redhat.com
Wed Apr 3 03:55:41 UTC 2019


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

            Bug ID: 1695399
           Summary: With parallel-readdir enabled, deleting a directory
                    containing stale linkto files fails with "Directory
                    not empty"
           Product: GlusterFS
           Version: 5
            Status: NEW
         Component: distribute
          Assignee: bugs at gluster.org
          Reporter: nbalacha at redhat.com
                CC: bugs at gluster.org
  Target Milestone: ---
    Classification: Community



This bug was initially created as a copy of Bug #1672851

I am copying this bug because: 



Description of problem:

If parallel-readdir is enabled on a volume, rm -rf <dir> fails with "Directory
not empty" if <dir> contains stale linkto files.


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


How reproducible:
Consistently

Steps to Reproduce:
1. Create a 3 brick distribute volume
2. Enable parallel-readdir and readdir-ahead on the volume
3. Fuse mount the volume and mkdir dir0
4. Create some files inside dir0 and rename them so linkto files are created on
the bricks
5. Check the bricks to see which files have linkto files. Delete the data files
directly on the bricks, leaving the linkto files behind. These are now stale
linkto files.
6. Remount the volume
7. rm -rf dir0

Actual results:
[root at rhgs313-6 fuse1]# rm -rf dir0/
rm: cannot remove ‘dir0/’: Directory not empty


Expected results:
dir0 should be deleted without errors

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