[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #9705] make ftsfind honour the -ignore_readdir_race option
From: |
Bernhard Voelker |
Subject: |
[patch #9705] make ftsfind honour the -ignore_readdir_race option |
Date: |
Mon, 15 Oct 2018 18:00:12 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0 |
Update of patch #9705 (project findutils):
Status: Done => None
_______________________________________________________
Follow-up Comment #5:
I couldn't reproduce with that test case on XFS, but I played a bit
with trying to create races.
It seems there are more race conditions which -ignore_readdir_race
should catch. The following creates 'tmp/d' alternatively as a
directory and a regular file:
$ while mkdir -p tmp tmp/d && rm -fr tmp/d && touch tmp/d && rm -f tmp/d ;
do : ; done
Now, in a second terminal, the following command should ideally run without
errors:
$ while : ; do ~/findutils/find/find -D search -ignore_readdir_race -delete
|| break; done
It turns out, that find terminates at least when it gets an error
from newstatat(), and from open().
Needs some more investigation ...
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?9705>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/