From: David Woodhouse <dwmw2@infradead.org>
To: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
Cc: Miraj Mohamed <miraj@procsys.com>,
jffs-dev@axis.com, linux-mtd@lists.infradead.org
Subject: Re: mirroring in JFFS2
Date: Tue, 12 Nov 2002 16:18:37 +0000 [thread overview]
Message-ID: <449.1037117917@passion.cambridge.redhat.com> (raw)
In-Reply-To: <20021112160843.GE5031@wohnheim.fh-wedel.de>
joern@wohnheim.fh-wedel.de said:
> Are you trying to put the mirroring stuff into jffs2?
> In the hard disk world, people use md for this, which uses two devices
> and returns one. The filesystem does not need to worry about anything.
RAID is done at the wrong layer. The file system knows stuff about the
contents of the media which a block device driver cannot possibly know. So
you end up having a RAID rebuild take ages to reconstruct parts of the disc
which the file system _knows_ are currently unused, etc.
You can have journalled RAID to help alleviate this problem -- or you could
just let the file system do it because that already has a journal anyway.
So, for example, you scribble it to your journal, then to both your mirrors,
and mark the journal transaction complete only when it's hit both discs.
Getting back to JFFS2, the same applies -- if you have a bad block in one
of your flash chips, what do you do about it? Refrain from using the
equivalent block in the other chip? Have some kind of block remapper
underneath JFFS2, which keeps a whole lot of address information which is
in fact entirely superfluous to the file system?
I think it does want to be done in the file system, or possibly even in a
layer _above_ the individual file system, which duplicates writes to two or
more underlying file systems of a mountpoint, and do whatever's deemed
appropriate for reads. Doing it in the individual file system is probably
easier, if less interesting :)
--
dwmw2
next prev parent reply other threads:[~2002-11-12 15:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3DD0D966.E6D877EC@procsys.com>
2002-11-12 16:08 ` mirroring in JFFS2 Jörn Engel
2002-11-12 16:18 ` David Woodhouse [this message]
2002-11-12 17:15 ` Jörn Engel
2002-11-12 17:22 ` Alan Cox
2002-11-12 17:07 ` David Woodhouse
2002-11-12 17:27 ` 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=449.1037117917@passion.cambridge.redhat.com \
--to=dwmw2@infradead.org \
--cc=jffs-dev@axis.com \
--cc=joern@wohnheim.fh-wedel.de \
--cc=linux-mtd@lists.infradead.org \
--cc=miraj@procsys.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox