Re: No space left on device (28) but device is NOT full!
On Tue, Nov 05, 2013 at 03:13:10PM +0400, Reco wrote:
> find . -type f -name 'popularity-*' -print0 | xargs -0rn 20 rm -f
I idly wonder (don't know) to what extend find might parallelize the
unlinks with -delete. A cursory scan of the semantics would suggest it
could potentially do so: it's not clear that a single unlink failing
should stop future unlinks (merely spew errors and consider the -delete
operation as a whole to have failed)
> Arguably the fastest way to delete all this mess should be
>
> perl -e 'for(<popularity-*>){((stat)[9]<(unlink))}'
Not sure why loading perl (>1.6M) should be faster than find (~300K)
and I think '-delete' behaviour is essentially unlink under the hood.
Reply to: