* multiple jffs_file_write calls
@ 2000-07-19 10:44 Rogelio M. Serrano Jr.
2000-07-19 14:12 ` Finn Hakansson
0 siblings, 1 reply; 2+ messages in thread
From: Rogelio M. Serrano Jr. @ 2000-07-19 10:44 UTC (permalink / raw)
To: mtd
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? 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. Should we make VFS aware of mtd like what I think should
be done or handle it in another way? What do you think?
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: multiple jffs_file_write calls
2000-07-19 10:44 multiple jffs_file_write calls Rogelio M. Serrano Jr.
@ 2000-07-19 14:12 ` Finn Hakansson
0 siblings, 0 replies; 2+ messages in thread
From: Finn Hakansson @ 2000-07-19 14:12 UTC (permalink / raw)
To: Rogelio M. Serrano Jr.; +Cc: mtd, jffs-dev, Per Knudsen
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@infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-07-19 14:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-19 10:44 multiple jffs_file_write calls Rogelio M. Serrano Jr.
2000-07-19 14:12 ` Finn Hakansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox