From: Artem Bityutskiy <dedekind1@gmail.com>
To: Rick Johnson <rick22@wi.rr.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: read_pnode: error -22 reading pnode at XX:YYYYY
Date: Thu, 21 Apr 2011 16:20:01 +0300 [thread overview]
Message-ID: <1303392001.2757.16.camel@localhost> (raw)
In-Reply-To: <4DADF9E6.9010709@wi.rr.com>
On Tue, 2011-04-19 at 16:08 -0500, Rick Johnson wrote:
> Hi,
>
> We've been seeing this error
>
> "read_pnode: error -22 reading pnode at XX:YYYYY"
Hi, I'm very busy now, but here is a quick hint. It looks like a bug. Do
you do unclean power cuts? It might be a bug in the bits manipulation
functions. In short - a penode describes amount of free and dirty space
in one LEB. We try to store this information as compactly as possible,
so we jam it into bits.
There is a 'ubifs_pack_pnode()' function which is used to jam the
free/dirty information into bits. Try to instrument it with and:
1. Validate the pnode before packing, do the same validate_pnode() does.
May be you'll catch the place where it we write incorrect pnode. Because
what you see is a result of an error which might have happend long
before you hit it.
2. At the end of 'ubifs_pack_pnode()' unpack it and validate again, and
make sure it did not change. May be there is a bug in packing/unpacking
functions, then you will catch this.
I'll try to come up with a patch which does this every time we have
debugging enabled, but not now, no time.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
next prev parent reply other threads:[~2011-04-21 13:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-19 21:08 read_pnode: error -22 reading pnode at XX:YYYYY Rick Johnson
2011-04-21 13:20 ` Artem Bityutskiy [this message]
2011-05-05 21:07 ` Rick Johnson
2011-05-06 18:32 ` Artem Bityutskiy
2011-05-09 17:41 ` Rick Johnson
2011-05-20 21:16 ` Rick Johnson
2011-05-24 8:41 ` Artem Bityutskiy
2011-05-24 11:43 ` Artem Bityutskiy
2011-05-27 20:26 ` Rick Johnson
2011-05-30 16:07 ` Artem Bityutskiy
2011-05-24 19:37 ` Rick Johnson
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=1303392001.2757.16.camel@localhost \
--to=dedekind1@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=rick22@wi.rr.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.