From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: Pierre Ossman <drzeus-list@drzeus.cx>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: Flash erase groups and filesystems
Date: Wed, 17 Aug 2005 13:45:57 +0200 [thread overview]
Message-ID: <20050817114557.GD675@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <430320EF.3070907@drzeus.cx>
On Wed, 17 August 2005 13:35:11 +0200, Pierre Ossman wrote:
>
> Whilst we're on the subject, do the filesystems assume that the device
> can tell them exactly where the write failed? I.e. if the driver knows
> that 5 sectors were written correctly, but that it failed somewhere
> beyond that. It might have failed at sector 6, but it might also have
> failed at sector 10. The assumption that sectors contain either old or
> new data is still true, we're just unsure which. This can be the case
> when you feed a controller a lot of data and it can only report back
> success or failure.
Not really. In the most common case, things have failed because the
system died unexpectedly, either through power loss or kernel bugs or
the like. After such a clean unmount, a journal replay or fsck,
depending on the fs type, will fix things for you. That works without
any knowledge, where the last write failed.
If the error is really an IO error, the behaviour is heavily dependent
on the fs you used. Ext[23] will usually remount the fs read-only, so
you can hopefully retrieve all your data from the failing "hard
drive". In that case, again, it doesn't matter much where things
broke.
> >So the only remaining option is to add a new interface that lets
> >filesystems decide to support pre-erase in some form. And one such
> >interface would be the "forget" operation. Nice attribute of forget
> >is the fact that it would also help some FTL layers in the kernel.
> >There is nothing MMC-specific about it.
>
> A bit too much work for me right now. But I'll be there with my erase
> patch when someone implements it. :)
Good to know.
Jörn
--
There is no worse hell than that provided by the regrets
for wasted opportunities.
-- Andre-Louis Moreau in Scarabouche
next prev parent reply other threads:[~2005-08-17 11:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-15 20:21 Pierre Ossman
2005-08-16 16:27 ` Jörn Engel
2005-08-16 17:09 ` Pierre Ossman
2005-08-16 18:13 ` Jörn Engel
2005-08-16 18:52 ` Jörn Engel
2005-08-17 11:35 ` Pierre Ossman
2005-08-17 11:45 ` Jörn Engel [this message]
2005-08-17 14:35 ` Pavel Machek
2005-08-18 11:09 ` linux-os (Dick Johnson)
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=20050817114557.GD675@wohnheim.fh-wedel.de \
--to=joern@wohnheim.fh-wedel.de \
--cc=drzeus-list@drzeus.cx \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®