From: Paul Wakeman <prwakeman@yahoo.com>
To: KaiGai Kohei <kaigai@ak.jp.nec.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: jffs2: mount problems when XATTR is enabled
Date: Wed, 25 Jul 2007 04:04:37 -0700 (PDT) [thread overview]
Message-ID: <369376.85924.qm@web57912.mail.re3.yahoo.com> (raw)
In-Reply-To: <46A71A39.5020707@ak.jp.nec.com>
[-- Attachment #1: Type: text/plain, Size: 2424 bytes --]
KaiGai Kohei <kaigai@ak.jp.nec.com> wrote:
> >> Did you pack any xattr in the filesystem image?
> >
> > No. The initial rootfs has no files with xattrs. Applications add
> > attributes when the system operates. These errors occur before the
> > first xattr is written.
>
> I wonder why jffs2/xattr code gave an effect your flash device
> without any xattr node, because any xattr related implementation
> is invoked only when jffs2 found xattr nodes on the medium, or
> xattr related operations are done (like setfacl).
Maybe it causes timing differences just by it being compiled in?
My boot logs show calls to jffs_build_xattr_subsystem().
> >> Is it possible to retry it using the kernel with debug messages.
> >> (See fs/jffs2/debug.h)
> >
> > Ok. I'll send the log later.
>
> I think Kconfig related to JFFS2 also helps us to understand the
> situation.
Attached are two compressed logs captured on the serial port.
jffs2-dbg-flashboot.log.gz
jffs2-dbg-nfsboot.log.gz
The logs show kernel boot messages and shell command output which will
hopefully show the symptoms. The same kernel was used in each case.
The root partition is in NOR flash (mtd2). Applications use xattr
features only in /mnt/userdata (also in NOR at mtd3). There are 3
partitions in NAND (mtd6-8).
At the end of the nfsboot log, there are shell commands that show that
manually mounting /dev/mtdblock2 (which gave all the errors in the
flash boot case) mounts cleanly.
The jffs2 kernel config is:-
# CONFIG_JFFS_FS is not set
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=2
CONFIG_JFFS2_FS_WRITEBUFFER=y
# CONFIG_JFFS2_SUMMARY is not set
CONFIG_JFFS2_FS_XATTR=y
# CONFIG_JFFS2_FS_POSIX_ACL is not set
# CONFIG_JFFS2_FS_SECURITY is not set
# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
CONFIG_JFFS2_ZLIB=y
CONFIG_JFFS2_RTIME=y
# CONFIG_JFFS2_RUBIN is not set
> What's happen when you boot the board with NFS root, and mount the
> errored
> partition manually again?
See the attached nfsboot log. No errors!
> If you can reproduce the error, I recommend you to try the same test
> on mtdram pseudo mtd device next.
Unfortunately this only seems to happen if the system is booted using
the jffs2 rootfs.
Thanks again for your reply.
Paul
____________________________________________________________________________________Ready for the edge of your seat?
Check out tonight's top picks on Yahoo! TV.
http://tv.yahoo.com/
[-- Attachment #2: 1698775580-jffs2-dbg-flashboot.log.gz --]
[-- Type: application/x-gzip, Size: 52358 bytes --]
[-- Attachment #3: 467851458-jffs2-dbg-nfsboot.log.gz --]
[-- Type: application/x-gzip, Size: 51999 bytes --]
next prev parent reply other threads:[~2007-07-25 11:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-24 11:59 jffs2: mount problems when XATTR is enabled Paul Wakeman
2007-07-25 2:31 ` KaiGai Kohei
2007-07-25 8:42 ` Paul Wakeman
2007-07-25 9:39 ` KaiGai Kohei
2007-07-25 11:04 ` Paul Wakeman [this message]
2007-07-26 2:42 ` KaiGai Kohei
2007-07-26 3:46 ` KaiGai Kohei
2007-07-26 14:44 ` Paul Wakeman
2007-07-30 4:42 ` KaiGai Kohei
2007-07-26 11:39 ` Paul Wakeman
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=369376.85924.qm@web57912.mail.re3.yahoo.com \
--to=prwakeman@yahoo.com \
--cc=kaigai@ak.jp.nec.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