Finn Hakansson finn at axis.com
Mon Jul 24 11:09:42 EDT 2000

On Sat, 22 Jul 2000, Rogelio M. Serrano Jr. wrote:

> How do we handle these:
>   Appending to an existing file. What fields must be updated with what?
> We write a new inode right? What values should I place in the raw inode
> struct?

There must be a raw inode preceeding each new chunk of data. The kind of
stuff that has to be inserted into each raw inode in jffs_file_write is
approximately what is in there today. The thingies that have to be changed
are the raw inode's version, offset and dsize. Of course one have to
compute new checksums. I don't think there are stuff other than that.

>   Rewriting file? Writing a file?

Yeah. One day, write and rewrite should be merged into one single function...


To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org

More information about the linux-mtd mailing list