Hi Ryusuke, On Sat, Sep 26, 2009 at 10:16:34AM +0900, Ryusuke Konishi wrote: > > The Ext3 approach also is hacky and shoe-horned. How can it even see if the > > hash table is still OK? an Ext2 system could have radically reformed and > > reformatted the dirents. > > One of the reason I see it as a candidate is that it keeps both > backward and forward compatibility. And, we can see the applicable > code in front of our eyes.
Ext3 hash correctness detection thus works ONLY if the first entry is indeed recycled on a directory entry creation. If not, its pointing to garbage..... > > I'll mail the source-snippets to you privately; but thats'll have to wait > > till > > tomorrow. Please do remind me if you haven't recieved them! > > Well, could you share the reference to the snippet on this list? I > think Sekiba-san also has interest in the code. Sure! I'll first try to fixup the code a bit more since i noticed that the free-space detection in Ext2 type direntries is euhm... hackish, just like in FFS btw ;) I've added a `compactable directory' bit now in the directory readin. If no free space is found on insertion that can be reused directly (i.e. fits inside a free space), it now knows it can issue a directory compaction. This compaction can either compact the entire directory in one go or only compact the broken up blocks; followed up by a rehash. So i'll be experimenting a bit more and let you know. With regards, Reinoud _______________________________________________ users mailing list [email protected] https://www.nilfs.org/mailman/listinfo/users
