public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: syed khader <khader_s_s@yahoo.com>
To: linux-mtd@lists.infradead.org
Subject: CRC errors when continuous fseek/fputs on JFFS2
Date: Mon, 15 May 2006 08:15:56 -0700 (PDT)	[thread overview]
Message-ID: <20060515151556.21775.qmail@web37902.mail.mud.yahoo.com> (raw)

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 

             reply	other threads:[~2006-05-15 15:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-15 15:15 syed khader [this message]
2006-05-15 15:46 ` CRC errors when continuous fseek/fputs on JFFS2 Jörn Engel
2006-05-15 15:57   ` Jörn Engel
     [not found] <20060516061354.GA18958@wohnheim.fh-wedel.de>
2006-05-16 12:40 ` 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060515151556.21775.qmail@web37902.mail.mud.yahoo.com \
    --to=khader_s_s@yahoo.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox