All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Artem B. Bityutskiy" <dedekind@yandex.ru>
To: zhao forrest <zhao_fusheng@hotmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH] Adding eraseblock header support(revised version)
Date: Thu, 22 Sep 2005 15:47:06 +0400	[thread overview]
Message-ID: <433299BA.2020104@yandex.ru> (raw)
In-Reply-To: <BAY17-F11A5B6E921FA39088B715BE8970@phx.gbl>

zhao forrest wrote:
> According to the comments from mailing list, one problem is
> still open:
> Whether should we set the compat flag of eraseblock_header to
> RWCOMPAT_DELETE or INCOMPAT? Now in my patch I still set the compat flag 
> of eraseblock_header
> to INCOMPAT. After the final decision is made, I can modify
> the patch accordingly.
> 
Well, this was discussed... But I still don't see any conclusion. My
opinion is below.

Terms:
1. New JFFS2 - recent JFFS2 where 1:1 was added.
2. Old JFFS2 - older JFFS2, before 1:1 was added.
3. New JFFS2 image - an image made for new JFFS2.
4. Old JFFS2 image - an image made for old JFFS2.

Q: are there any issues when an old JFFS2 image is mounted by new JFFS2
code?
A: yes, there are. Old JFFS2 did eraseblock concatenations and worked
with virtual eraseblocks. So, there are nodes which cross the eraseblock
boundary.

Q: why is this a problem?
A: because with 1:1 mapping we will have nodes which cross the
eraseblock boundary. JFFS2 will suffer hard.

Q: what to do?
A: either handle this or reject mounting old images in New JFFS2.

Thus, my answer is - yes, you must reject mounting old images.

But this has no relation to your parch. Could you implement that by a
distinct patch please? Or Ferenc, who actually committed the 1:1 patch
may do this :-) (please).

You may implement it like this. If you have met any clean marker during
scan - reject mounting JFFS2. No need to introduce messy
JFFS2_NODETYPE_INODE_EBH and the like.

-- 
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.

  reply	other threads:[~2005-09-22 11:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-22  8:17 [PATCH] Adding eraseblock header support(revised version) zhao forrest
2005-09-22 11:47 ` Artem B. Bityutskiy [this message]
2005-09-23  2:45   ` zhao forrest
2005-09-23  8:57     ` Jörn Engel
2005-09-22 12:08 ` Artem B. Bityutskiy
2005-09-23  3:08   ` zhao forrest
2005-09-23  9:23     ` Artem B. Bityutskiy
2005-09-22 14:37 ` Artem B. Bityutskiy

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=433299BA.2020104@yandex.ru \
    --to=dedekind@yandex.ru \
    --cc=linux-mtd@lists.infradead.org \
    --cc=zhao_fusheng@hotmail.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.