<div dir="ltr">Hi:<div><br></div><div>Recently I encountered an error msg &quot;Directory not empty&quot; during I execute &quot;rm -rf&quot; command in .trashcan.</div><div>I used <span style="color:rgb(0,0,0);white-space:pre-wrap">glusterfs 3.7.6.</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div>Here is my reproducer:</div><div><pre class="" id="comment_text_0" style="white-space:pre-wrap;word-wrap:break-word;width:50em;color:rgb(0,0,0)">1. I created a volume titled &quot;eee&quot;, then I turned the &quot;features.trash&quot; on.

2. Mount it on /volume/eee

3. Extract a package, let&#39;s say &quot;php-5.6.19.tar.gz&quot;. And then I delete itimmediately.
[root@cosmo eee]# ls -a
.  ..  php-5.6.19  php-5.6.19.tar.gz  .trashcan
[root@cosmo eee]# rm -rf php-5.6.19
[root@cosmo eee]# ls -a
.  ..  php-5.6.19.tar.gz  .trashcan

4. I could find it in .trashcan path.
[root@cosmo .trashcan]# ls
internal_op  php-5.6.19

5. I intend to delete them in .trashcan.
[root@cosmo .trashcan]# rm -rf php-5.6.19/
rm: cannot remove `php-5.6.19/Zend/tests/generators&#39;: Directory not empty
rm: cannot remove `php-5.6.19/Zend/tests/constants/fixtures/folder4&#39;: Directory not empty
rm: cannot remove `php-5.6.19/Zend/tests/constants/fixtures/folder3&#39;: Directory not empty
rm: cannot remove `php-5.6.19/Zend/tests/traits&#39;: Directory not empty
rm: cannot remove `php-5.6.19/ext/odbc&#39;: Directory not empty
rm: cannot remove `php-5.6.19/ext/gettext/tests/locale/en&#39;: Directory not empty
rm: cannot remove `php-5.6.19/ext/simplexml&#39;: Directory not empty
rm: cannot remove `php-5.6.19/ext/curl/tests&#39;: Directory not empty

6. I checked every directory in this mount point, it seems like they all are empty. But I jumped into bricks directory which is used by this volume, I found these directorys, they are not empty, still hold some files in there.</pre></div><div><br></div><div>Is there anyone hit this issues before? Or I mistake some steps? </div><div>Thank you.</div><div><br></div><div>BR</div><div><br></div><div><br></div></div>