public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Johan Adolfsson" <johan.adolfsson@axis.com>
To: <joakim.tjernlund@lumentis.se>, <linux-mtd@lists.infradead.org>
Subject: Re: mkfs.jffs2 propsal and a question about burst reads
Date: Tue, 6 Nov 2001 15:03:18 +0100	[thread overview]
Message-ID: <3fab01c166cb$c9155fe0$0a070d0a@axis.se> (raw)
In-Reply-To: IGEFJKJNHJDCBKALBJLLGENIEPAA.joakim.tjernlund@lumentis.se

----- Original Message ----- 
From: Joakim Tjernlund <joakim.tjernlund@lumentis.se>
To: <linux-mtd@lists.infradead.org>
Sent: Tuesday, November 06, 2001 12:40
Subject: mkfs.jffs2 propsal and a question about burst reads


> Hi it's me again ..
> 
> with some more questions/suggestions
> 
> 1)
>    Before I can install a new JFFS2 FS image(produced with mkfs.jffs2) I have
>    to erase the whole flash partition, then copy the image(with cp image /dev/mtdlock4)
>    the device. Then I boot linux and now JFFS2 will re-erase all unused blocks. 
>    If I skip the initial erase, then JFFS2 will be confused by the earlier
>    JFFS2 contens which remain after the previous JFFS2 FS that were on the flash.
> 
>    I think this is the expected behavior, correct?
> 
>    I find it unconvinient and time consuming to erase the WHOLE flash partiton
>    before I can install a new FS image. Therefore I wonder if it would
>    be possible to add some flag/end marker in JFFS2 that mkfs.jffs2 could
>    set, so that JFFS2 knows that the flash space after the maker does not
>    contain valid JFFS2 data. Once JFFS2 has recongnized its FS, JFFS2 would
>    delete the end marker and resume normal behaviour. 
>    
>    What do you think?  

Perhaps we should give the erase command a "jffs2-format" option
so that it erases and writes the proper erase marker on the sectors to prevent
JFFS2 to erase them again?
The erase ulitity should then also skip erasing sectors that has the erased 
marker already which might speed up the erase a little.
I guess copying an image to the formatted flash should work even if it contains
erase marks?

/Johan

  parent reply	other threads:[~2001-11-06 13:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-06  0:37 Need help understanding cfi_probe and cfi_cmdset_0002 jglennon
2001-11-06  7:27 ` David Woodhouse
2001-11-06 11:40   ` mkfs.jffs2 propsal and a question about burst reads Joakim Tjernlund
2001-11-06 12:13     ` Jörn Engel
2001-11-06 13:06       ` Michael Rothwell
2001-11-06 14:07         ` Jörn Engel
2001-11-07  4:07           ` Bjorn Wesen
2001-11-07 12:37             ` Jörn Engel
2001-11-08  2:12               ` journaling Bjorn Wesen
2001-11-08 13:06                 ` journaling Jörn Engel
2001-11-13 16:12                   ` journaling Bjorn Wesen
2001-11-06 13:22       ` mkfs.jffs2 propsal and a question about burst reads David Woodhouse
2001-11-06 13:20     ` David Woodhouse
2001-11-06 13:45       ` Joakim Tjernlund
2001-11-06 14:03     ` Johan Adolfsson [this message]
2001-11-06 14:21       ` Jörn Engel
2001-11-06 14:31         ` Johan Adolfsson
2001-11-06 14:38           ` Jörn Engel

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='3fab01c166cb$c9155fe0$0a070d0a@axis.se' \
    --to=johan.adolfsson@axis.com \
    --cc=joakim.tjernlund@lumentis.se \
    --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