From: "Gavin Lambert" <gavinl@compacsort.com>
To: <linux-mtd@lists.infradead.org>
Subject: Removable MTD device
Date: Wed, 29 Nov 2006 13:50:17 +1300 [thread overview]
Message-ID: <01f301c71350$56a27fb0$4800a8c0@gavinlpc> (raw)
What's the best way to implement a removable MTD device?
Specifically, I've got a DataFlash card with an MMC footprint. For
fault tolerance and graycoding I'd like to use JFFS2 on it, since that
seems like a good choice. (Compatibility isn't an issue here since most
devices can't read DF cards anyway.)
However, the problem comes when the user inserts or removes the card
while the system is running. I can do change detection readily enough
(through polling for the card's status periodically), but I'm not sure
how I should then pass that on to MTD and the rest of the system. In
particular, what should I do if the filesystem is mounted? Ideally I'd
like to auto-demount it, even if there is outstanding activity (since
there's no possible way it could succeed, since the card isn't there any
more).
I was also wondering how safe it is to change MTD device parameters
(such as type/size/etc) while the device is 'added'. I don't really
want to remove and re-add the device on remove and insert events, since
that could change the device number. So how safe is it to just flip the
type/size of an existing MTD device to MTD_ABSENT/0 on removal?
reply other threads:[~2006-11-29 0:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='01f301c71350$56a27fb0$4800a8c0@gavinlpc' \
--to=gavinl@compacsort.com \
--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