public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Rogelio M. Serrano Jr." <rogelio@evoserve.com>
To: Finn Hakansson <finn.hakansson@axis.com>
Cc: mtd@infradead.org
Subject: Re: inode alignment in flash
Date: Thu, 13 Jul 2000 02:04:27 +0800	[thread overview]
Message-ID: <396CB32B.F5BDE904@evoserve.com> (raw)
In-Reply-To: Pine.LNX.4.21.0007120844330.30364-100000@vvv.axis.se

Finn Hakansson wrote:

>
> No, raw inodes in JFFS is not aligned on page boundaries. There
> is a definition in jffs_fm.h called JFFS_ALIGN_SIZE which is the
> alignment of all kinds of data on-flash. Currently JFFS_ALIGN_SIZE
> is set to 4 bytes. (The comments in the switch in jffs_scan_flash
> about blocks are a little obsolete. Sorry about that.)
>

I have already noticed that macro before but I had doubts when I came across
the comments when I dived deep into the code.

>
> Did I get this right? You first create a jffs image with mkfs.jffs
> which you are able to mount the first time. Then you write some more
> data to the flash device, while mounted, and everything is fine. When
> you then mount after doing these writes, it fails. Exactly where does
> the mount fail? Hmmm... Can you turn on the debug printouts and try
> to see what is going wrong?
>
> Best regards,
> Finn

Not quiet. I created a jffs image by using cat. When I mounted it the first
time I noticed that some inodes were already being discarded as invlaid . I
didnt write anything to it. After a long time and a lot of messages about
invalid checksums it successfuly mounts. I cd into the mounted fs and did an
"ls -l" in the directory. The file size for one file was wrong. It was the
file with the "invalid" inodes. When I unmount and then mount again it
simply fails.

Now I looked at the sources and noticed the patch about byteorder.... I
applied it and recompiled the kernel and now I can mount with no problems. I
cant write on it though, it just fails. I commented out the part that
restricts write to 512 and all but still it wont write. I will try turning
on debug and post a copy the output.

Thanks.



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

      reply	other threads:[~2000-07-12 13:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-10 18:33 inode alignment in flash Rogelio M. Serrano Jr.
2000-07-12  7:16 ` Finn Hakansson
2000-07-12 18:04   ` Rogelio M. Serrano Jr. [this message]

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=396CB32B.F5BDE904@evoserve.com \
    --to=rogelio@evoserve.com \
    --cc=finn.hakansson@axis.com \
    --cc=mtd@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