jffs_file_write and DOC

David Woodhouse dwmw2 at infradead.org
Wed Jul 19 15:13:28 EDT 2000


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

> I observed that the jffs_file_write function misbehaves when given a
> chunk bigger than MAX_CHUNK_SIZE. It is passed a chunk exactly equal to
> MAX_CHUNK_SIZE so when it adds the inode and the name the resulting
> chunk in is more or less 60 bytes bigger than MAX_CHUNK_SIZE which is
> 4096 bytes in my case with the DOC2000.
> 
> Cat just writes a file shorter than it should be on flash. I used a
> modified DOC_loadbios utility to download my JFFS images to the DOC. If
> I dont write anything to it I could mount and unmount cleanly. But when
> I write to it, I get bad checksums on the next mount and totoal mount
> failure after couple more mounts.

There's a separate problem - the DiskOnChip MTD driver doesn't currently
handle writes which aren't 512 bytes long, if I recall correcty - because
I've not actually used it with anything but NFTL yet. It may not be
JFFS' fault.

--
dwmw2



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



More information about the linux-mtd mailing list