From: Larry Doolittle <ldoolitt@recycle.lbl.gov>
To: linux-mtd@lists.infradead.org
Subject: No clean _or_ dirty blocks to GC from!
Date: Thu, 4 Oct 2001 09:35:33 -0700 [thread overview]
Message-ID: <20011004093533.A25013@recycle.lbl.gov> (raw)
This is really strange. I go through the following steps:
0. Run linux-2.4.9-ac10-rmk2-np1 with latest CVS MTD/JFFS2 on a
StrongARM with Intel 28F320B3B Flash. /dev/mtd2 is a 1M partition.
1. eraseall /dev/mtd2
(works, I can verify all 1's in the 16 64K blocks)
2. cp image /dev/mtd2
(image created with mkfs.jffs2. Seems to work)
3. mount -t jffs2 /dev/mtdblock2 /mnt/test
mtdblock_open
ok
jffs2: No clean _or_ dirty blocks to GC from! Where are they all?
jffs2: Couldn't find erase block to garbage collect!
The files are there.
4. umount /mnt/test
(works)
5. check the blocks -- the 15 blocks that were all 1's before
all now have at the beginning:
begin 644 foo
@A1D#(`P```"QL![D__________________________\`
`
end
$ hexdump foo
0000000 1985 2003 000c 0000 b0b1 e41e ffff ffff
0000010 ffff ffff ffff ffff ffff ffff ffff ffff
0000020
Wild guess, after reading jffs2.h: these are "clean" markers.
magic is 0x1985 == JFFS2_MAGIC_BITMASK,
nodetype is 0x2003 == JFFS2_NODETYPE_CLEANMARKER,
totlen is 12,
hdr_crc is 0xe41eb0b1.
So everything is fine, why the complaint? And if I mount again,
I get the same nasty message as before.
Clearly, I'm still a novice at JFFS2.
- Larry
next reply other threads:[~2001-10-04 16:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-04 16:35 Larry Doolittle [this message]
2001-10-04 20:13 ` No clean _or_ dirty blocks to GC from! Russ Dill
2001-10-04 21:12 ` Larry Doolittle
2001-10-04 23:02 ` Larry Doolittle
2001-10-05 13:12 ` David Woodhouse
2001-10-05 17:59 ` Larry Doolittle
2001-10-08 9:23 ` 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=20011004093533.A25013@recycle.lbl.gov \
--to=ldoolitt@recycle.lbl.gov \
--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