Data lost when copying large binary files to NAND
Howard, Michael (MED)
Michael.Howard at med.ge.com
Tue Dec 16 21:51:55 EST 2003
Hello,
I have a situation here where I mount JFFS2 on top of my NAND device and
certain files will fail to copy over. Small text files are fine. The
problem is with large binary files. I copy to my mounted dir and ls -l
shows the file is entirely there. I check at the jffs2_flash_writev() and I
find that it has created the new inode and all the data is there. It also
appears to be correctly fragmented. It makes its way to the wbuf but I'm
not sure all frags are commited. I try a sync and umount to flush the wbuf.
Upon remounting, the file is lost or showing a size of 0. Upon scanning the
flash at mount I will always get "jffs2_get_inode_nodes(): Data CRC failed
on node at ..."
I don't get any write errors from nand.c upon committing the frags. My
theory is either the fragments aren't linking to each other, not all the
frags are written to flash or the scan on remount is failing to understand
the inode headers or data.
Has anyone experienced this and have any ideas? Any help would be much
appreciated.
Thanks
Mike
More information about the linux-mtd
mailing list