public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: "Curtis, Allen" <Allen.Curtis@Thales-IFS.com>
Cc: "'linux-mtd@lists.infradead.org'" <linux-mtd@lists.infradead.org>
Subject: Re: jffs2_scan_eraseblock() - errors
Date: Tue, 30 Jul 2002 23:21:51 +0100	[thread overview]
Message-ID: <14572.1028067711@redhat.com> (raw)
In-Reply-To: <FA06AA2C99BCD511951200005A99441001E3ECBE@irvexch1.sextantifs.com>

Allen.Curtis@Thales-IFS.com said:
> While testing power-fail operation of JFFS2, I can consistently
> produce this error which occurs when the partition is mounted.

> jffs2_scan_eraseblock() - Node at 0xXXXXXX {0x1985, 0xe002,
> 0x1985c002) has invalid CRC)

> I do not remember if the error is always CRC related and the Node
> location changes but the hex values displayed within the parens is
> consistent.

> Has anyone seen this before? Some concerns are: 1. Once the error
> occurs, it never gets fixed. 2. There does not appear to be a utility
> to fix errors.

> We are using MVista 2.1, which is 2.4.17. I was able to produce this
> error with only 13 power-cycles. 

It's harmless. We were in the middle of writing that node when we lost
power, and hadn't finished writing the payload -- hence the CRC fails.
That's sort of what the CRC is there for. No data were lost -- either we
were garbage-collecting and the original copy of the data will still be on
the flash, or it was a write of new data which never made it to flash
because the write() call never returned -- just as if you pulled the plug a
moment sooner. 

It's actually possible to avoid the cosmetic annoyance by marking the node 
as obsolete, so we don't check the CRC and hence don't bitch about it 
failing. Older versions of JFFS2 did that, as does the current version in 
2.4.19-rc3. But it's harmless and expected behaviour.


--
dwmw2

  reply	other threads:[~2002-07-30 22:21 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-30 18:11 jffs2_scan_eraseblock() - errors Curtis, Allen
2002-07-30 22:21 ` David Woodhouse [this message]
2002-07-31 10:34   ` Jörn Engel
2002-07-31 11:45     ` David Woodhouse
2002-07-31 11:57       ` Jörn Engel
2002-07-31 11:59         ` David Woodhouse
2002-07-31 12:16           ` Jörn Engel
2002-07-31 12:17             ` David Woodhouse
2002-07-31 13:07               ` Jörn Engel
2002-07-31 21:12               ` Problems with full FS Joakim Tjernlund
2002-08-01 18:26               ` Oops when unlinking stale file Joakim Tjernlund
  -- strict thread matches above, loose matches on Subject: below --
2002-07-30 23:30 jffs2_scan_eraseblock() - errors Curtis, Allen
2002-07-30 23:42 ` David Woodhouse
2002-07-30 23:59 Curtis, Allen
2002-07-31  0:15 ` David Woodhouse
2002-07-31  0:18 ` David Woodhouse
2002-07-31  0:38 Curtis, Allen
2002-07-31  0:48 ` David Woodhouse
2002-07-31  1:15 Curtis, Allen
2002-07-31  3:07 ` David Woodhouse
2002-07-31 23:02 Curtis, Allen
2002-08-01 10:44 ` David Woodhouse

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=14572.1028067711@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=Allen.Curtis@Thales-IFS.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