LWN.net Logo

A NILFS2 score card

A NILFS2 score card

Posted Nov 9, 2012 9:51 UTC (Fri) by etienne (subscriber, #25256)
In reply to: A NILFS2 score card by Russ.Dill@gmail.com
Parent article: A NILFS2 score card

> since we are talking log structured file systems, you don't allocate space for files anyway, you allocate space for writes.

I have never gone into log structured file systems, I do not know how they handle the pattern people use to create contiguous files on standard filesystems (write a byte at beginning of the file, write a byte at the end of the file of known size, flush the file). Even the best filesystems cannot guess the final size of the file without hint, and even with delayed allocation at some point something has to be written to the disk.

> In the case of a file hole, you just don't allocate space.

But holes can appear at a random position, and usually the filesystem will not allocate blocks in a file hole on the parts aligned to sector sizes, so the filesystem has to write the default value on parts which are not aligned.
Then, the user usually begin to fill the hole that he has just created, so the FLASH driver has just zeroed the FLASH and is forced to erase it again.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds