Re: ext2fs enhacement/fix [re: shrinking directories]

Anthony Barbachan (barbacha@trill.cis.fordham.edu)
Mon, 20 Jul 1998 02:45:20 -0400


>> I doubt this, the directory is after all just a special file. The
program
>> could check to time stamp before updating and give it three tries.
> I'm not sure if I can follow your thoughts. You mean the program would
>make a separate "packed" copy of dir and then replace the old dir?
>

Rough outline of steps I think would work:
1. Read directory information
2. Pack and possibly sort it, meanwhile other programs can still access
the directory information
3. Check change time stamp and if not changed replace the directory
information with the new one
If changed try again.

>> I said run the utility "periodically", this doesn't mean all the time.
>> Perhaps once a week along with a fsck.
> With fsck probably not ;) (The fs would have to be unmounted). I don't

Actually I was thinking fsck in check only mode to check for any errors
before they cause problems.

>think it will speed up things considerably but maybe...
>
>PS: I think the best will be to wait for btrees in ext3...
>

Perhaps.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html