public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Jeremy Elson <jelson@ISI.EDU>
To: David Woodhouse <dwmw2@infradead.org>
Cc: jffs-dev@axis.com, mtd@infradead.org
Subject: Re: Does JFFS respect partitions?
Date: Thu, 15 Feb 2001 03:11:20 -0800	[thread overview]
Message-ID: <200102151111.DAA02064@concorde.cs.ucla.edu> (raw)
In-Reply-To: Message from David Woodhouse <dwmw2@infradead.org> of "Thu, 15 Feb 2001 10:10:11 GMT." <20534.982231811@redhat.com>


David Woodhouse writes:
>Having a read-only partition on the _emulated_ block device doesn't help. 
>The blocks of that partition will still be shifted around to perform 
>wear-levelling while you write to the other partition. If the NFTL 
>filesystem gets corrupted (note the BETA in capital letters in the 
>CONFIG_NFTL_RW config option), you've still lost your read-only filesystem.

Interesting - I didn't realize the DOC did internal wear-levelling.  I
guess that might mean that there's no point in using JFFS on top of
the NTFL layer anyway?

I appreciate your advice and knowing that readonly partitions are not,
in reality, readonly from the point of view of the actual flash
blocks.  Our original (non-Linux) system was split into two partitions
to prevent against corruption of the OS filesystem - we didn't want
the readonly boot partition to stop working due to, say, a poweroff in
the middle of a write to a log file on the writable partition.  I
guess I was assuming that, underneath, writes to the DOC sectors were
more or less atomic, and that corruption on that level was much more
unlikely.  I was more worried about a long-lived write failing,
e.g. 30 seconds worth of buffer cache in the OS not being flushed
before a poweroff.

>It's also possible to register the DiskOnChip raw flash as two separate MTD 
>devices, which is how we 'partition' normal flash. Then you let the NFTL 
>code put a filesystem on one of them and use JFFS on the other. 

This sounds ideal - how does one do this?

>> Also, what's jffs2?  Is it safe to use that, and how is it different? 
>
>Pay no attention to the man behind the curtain.

I don't know the intricacies of the existing jffs2 code or what's left
to implement, but, will a broomstick speed things up for you?  :-)

-Jer


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

  reply	other threads:[~2001-02-15 11:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200102150323.TAA01327@concorde.cs.ucla.edu>
2001-02-15 10:10 ` Does JFFS respect partitions? David Woodhouse
2001-02-15 11:11   ` Jeremy Elson [this message]
2001-02-15 11:41     ` 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=200102151111.DAA02064@concorde.cs.ucla.edu \
    --to=jelson@isi.edu \
    --cc=dwmw2@infradead.org \
    --cc=jffs-dev@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