On Sun, 24 February 2008 18:57:32 +0800, David Woodhouse wrote:
Truncate-to-larger is trivial to check. Almost every filesystem does it
somewhere, including JFFS2. ;)
But yeah, truncate-to-zero should catch the common case.
I would simply always write out a "full" replacement node, i.e. the
complete tail page for the file. No need to check if an old node gets
obsoleted, we just made sure it does. Anyway, it is your baby, so you
get to change the dirty diapers and pick your favorite pair of clean
ones.
Jörn
--
Joern's library part 3:
http://inst.eecs.berkeley.edu/~cs152/fa05/handouts/clark-test.pdf
--