On Tue, Mar 21, 2006 at 05:10:36PM -0800, Valerie Henson wrote:> > The combination of the orphan inode and preallocation blocks problem> led me to another idea: create in-memory-only allocation bitmaps for> both inodes and blocks. These bitmaps would track blocks and inodes> allocated only for the life of this mount (or a file open) in memory> rather than on disk. I haven't implemented this yet but I think it is> a promising approach.

As I discovered about 5 seconds after starting to implement this, thisis a terrible idea. Hint: think about worst-case memory usage. I amworking on porting the ext3 reservation code to ext2 instead.