public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* CRC errors when continuous fseek/fputs on JFFS2
@ 2006-05-15 15:15 syed khader
  2006-05-15 15:46 ` Jörn Engel
  0 siblings, 1 reply; 15+ messages in thread
From: syed khader @ 2006-05-15 15:15 UTC (permalink / raw)
  To: linux-mtd

Hi,
   I am finding this strange problem.
I am running the following piece of code :

int main()
{
   FILE *fp;
   int i;
   fp = fopen("/var/mnt/testfile","w");
   for(i =0 ; i < 100000 ; i++)
   {
   fputs("xxxx", fp);
   fseek(fp, -4, SEEK_CUR);
   fputs("xx", fp);
  }
   fclose(fp);
}

  JFFS2 is mounted on /var/mnt. While the program is
running I am getting CRC errors like this:

Data CRC 6c48916e != calculated CRC 11ebde1b for node
at 000e0a68
  
   If  I am not doing fseek above and just add writing
to file in the loop I dont see any CRC errors.
   Pleae let me know what is happening here. Is JFFS2
running out of buffers or something?
   BTW I am using uclinux2.4.24 JFFS2.2 on a ARM7
board

Regards
Syed




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

end of thread, other threads:[~2006-05-17 14:28 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20060516061354.GA18958@wohnheim.fh-wedel.de>
2006-05-16 12:40 ` CRC errors when continuous fseek/fputs on JFFS2 syed khader
2006-05-16 14:26   ` Jörn Engel
2006-05-16 15:01     ` syed khader
2006-05-16 15:31       ` Jörn Engel
2006-05-17  5:12         ` syed khader
2006-05-17  6:25           ` zlib compression is failing syed khader
2006-05-17  9:10             ` Jörn Engel
2006-05-17 10:42               ` Josh Boyer
2006-05-17 11:22               ` syed khader
2006-05-17 13:19                 ` Jörn Engel
2006-05-17 13:48                   ` syed khader
2006-05-17 14:28                     ` David Woodhouse
2006-05-15 15:15 CRC errors when continuous fseek/fputs on JFFS2 syed khader
2006-05-15 15:46 ` Jörn Engel
2006-05-15 15:57   ` Jörn Engel

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