public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* jffs2 filesystem/flash data integrity
@ 2009-04-19  2:55 Manoj
  2009-04-19  7:33 ` David Woodhouse
  0 siblings, 1 reply; 6+ messages in thread
From: Manoj @ 2009-04-19  2:55 UTC (permalink / raw)
  To: linux-mtd

Hi,

I have a jffs2 filesystem on NAND flash. After mounting the jffs2 fs,
I create a 2MB file and make a copy of it using "cp" command. When I
do a "diff" between two files, the files are same. Now, I unmount the
fs and re-mount it. When I do a "diff" between the two files, they
differ. Looking at the difference, I see that around 4K of data in one
file has 0s in it. This 4K hole can be anywhere in the file.  There is
no issue with a 1MB file.

I use the following command to mount:
mount -t jffs2 -osync /dev/mtdb-boot2 /mnt/jff

The NAND page size is 512 bytes and block size if 16K.

What could be going wrong? I have also tried doing a "sync" after
creating the second file. Is this a driver issue?

Any hints appreciated.
Please cc me in the reply as I am not subscribed.

Thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-05-01  2:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-19  2:55 jffs2 filesystem/flash data integrity Manoj
2009-04-19  7:33 ` David Woodhouse
2009-04-20 18:27   ` Manoj
2009-04-21  9:15     ` David Woodhouse
2009-04-28  2:30       ` Manoj
2009-05-01  2:32         ` Manoj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox