Re: jffs2: -ENOSPC when truncating file?!

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jörn
Date: Sunday, February 24, 2008 - 4:08 am

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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
jffs2: -ENOSPC when truncating file?!, Pavel Machek, (Sat Feb 23, 4:57 pm)
Re: jffs2: -ENOSPC when truncating file?!, David Woodhouse, (Sat Feb 23, 5:36 pm)
Re: jffs2: -ENOSPC when truncating file?!, Jörn, (Sat Feb 23, 11:57 pm)
Re: jffs2: -ENOSPC when truncating file?!, Pavel Machek, (Sun Feb 24, 12:24 am)
Re: jffs2: -ENOSPC when truncating file?!, David Woodhouse, (Sun Feb 24, 3:57 am)
Re: jffs2: -ENOSPC when truncating file?!, Jörn, (Sun Feb 24, 4:08 am)
Re: jffs2: -ENOSPC when truncating file?!, Jamie Lokier, (Sun Feb 24, 9:11 am)
Re: jffs2: -ENOSPC when truncating file?!, Pavel Machek, (Sun Feb 24, 12:02 pm)
Re: jffs2: -ENOSPC when truncating file?!, Alexander Belyakov, (Mon Feb 25, 12:48 am)
Re: jffs2: -ENOSPC when truncating file?!, Pavel Machek, (Mon Mar 3, 5:15 am)
Re: jffs2: -ENOSPC when truncating file?!, Jörn, (Mon Mar 3, 8:10 am)
Re: jffs2: -ENOSPC when truncating file?!, Alexander Belyakov, (Mon Mar 3, 9:09 am)