multiple jffs_file_write calls

Finn Hakansson finn.hakansson at axis.com
Wed Jul 19 10:12:42 EDT 2000


On Wed, 19 Jul 2000, Rogelio M. Serrano Jr. wrote:

> Does the VFS layer do the subdivision of large file writes such that it
> calls jffs_file_write multiple times with count exactly equal to
> MAX_CHUNK_SIZE?

That was what I thought from the beginning as well. (Or instead of
MAX_CHUNK_SIZE perhaps a page size of two.) But no. Right now there
is no check whether the chunk of data is too large or not. The code
just assumes that the data chunk is not big. As I stated in the last
mail, this is something that's about to be changed.


> When jffs_file_write writes the chunk it appends the
> name and header to it and we end up with a chunk bigger than
> MAX_CHUNK_SIZE.

Correct. This is a thing I will look into.


> Should we make VFS aware of mtd like what I think should
> be done or handle it in another way? What do you think?

I think this is something JFFS should handle.


/Finn



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



More information about the linux-mtd mailing list