bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Darwin HFS+ bug


From: Paul Eggert
Subject: Re: Darwin HFS+ bug
Date: Tue, 26 Sep 2006 16:42:13 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Jim Meyering <address@hidden> writes:

>       CONSECUTIVE_READDIR_UNLINK_THRESHOLD = 200

I looked into this a bit, and found myself wondering: why does 'rm'
need to have this constant?  Could rm do the rough equivalent of
savedir on the directory (copying its file names and perhaps types
into main memory), and then walk through the in-memory copy of the
directory?

Such an approach would take more memory, but the extra memory should
be acceptable these days.  Also, this approach would walk through the
directory twice, but in the normal case this wouldn't hurt performance
much, and it might even help performance.

An advantage of this approach is that we wouldn't need these fudge
factors for buggy file systems.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]