Subject: Re: Defragmenting a NetBSD drive
To: None <netbsd-ports@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-ports
Date: 09/16/1999 16:27:39
In article <Pine.NEB.4.02.9909161120150.8514-100000@epistolic.cynic.net>,
Curt Sampson <cjs@cynic.net> wrote:
>
>Well, that doesn't help with `rm "lots of files but not all of
>them"'. Would it in fact be unreasonable to modify rm--if given
>more than a couple of files in a directory--to scan through the
>directory once, and then sort its list of files to be removed in
>directory order in order to take advantage of the per-process namei
>cache?

That is a cool idea, but I don't think that smarts about specific
filesystem layout belong in user programs :-)

And rm 'lots of files', is not necessarily ran on ffs, or you are
suggesting that rm does an fstatfs() first.

christos