[RFC] Volatile data device vor jffs2
Dermot McGahon
dermot at dspsrv.com
Wed Aug 4 04:55:41 EDT 2004
On Sat, 31 Jul 2004 15:59:55 +0200, Jörn Engel
<joern at wohnheim.fh-wedel.de> wrote:
> With a ram based volatile device, there is danger of data loss, so
> garbage collection would have to be forced from time to time, similar
> to the current wbuf approach for nand.
[-]
> Comments?
Well, it still needs to be flushed to something non-volatile at
some point.
You can vary the time between flushes. It depends on how valuable
that data is to you. With an approach such as this you are really
deciding how big of a window for data loss you are willing to put
up with.
The approach I took while doing this a couple of years ago was not
to erase blocks until absolutely necessary and then do all the
garbage collection/file system reorganisation once. This took time
to do though, was suitable for the device in question (a KVM), but
possibly not for a general filesystem.
Dermot.
--
More information about the linux-mtd
mailing list