Subject: Re: Defragmenting a NetBSD drive
To: Guenther Grau <Guenther.Grau@bosch.com>
From: Jonathan O'Brien <obrien@hulk.sfsu.edu>
List: netbsd-ports
Date: 09/16/1999 10:38:40
On Thu, 16 Sep 1999, Guenther Grau wrote:

Why don't you just add an optional pass to fsck? Then you're free
to do further optimizations (if any exist) beyond directory
compaction. People who want to compact directories while the disk
is mounted can do so manually.


> Curt Sampson wrote:
> > 
> > On Thu, 16 Sep 1999, Guenther Grau wrote:
> > 
> > > Ok, you are right. All the processes doing a opendir()/readdir()
> > > need to fail when the directory changes behind their backs.
> > > So a real solution (I wonder what I forgot now :-) would be
> > > to return E_DIRWASCHANGED on readdir() in this case....
> > 
> > Spending programmer time to save computer time is often a bad idea.
> > In this case I think it'd be a really bad idea; we make a lot of
> > programmers do more work, and this situation continues into the
> > future, all to save a few blocks on a disk?
> 
> Hey... I was just thinking out loud. I wasn't actually proposing
> it. I just wanted to discuss when/why/how it would/could (not) be
> done... I already agreed in a previous mail that all this is
> most likely not worth the trouble.
> 
>   Guenther
> 

Jon