public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Andre Hedrick <andre@linux-ide.org>
Cc: Daniel Stodden <stodden@in.tum.de>, linux-kernel@vger.kernel.org
Subject: Re: hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
Date: Sat, 22 Dec 2001 23:53:26 -0800	[thread overview]
Message-ID: <3C258D76.BE259944@zip.com.au> (raw)
In-Reply-To: <87d71s7u6e.fsf@bitch.localnet> <Pine.LNX.4.10.10112222312030.8976-100000@master.linux-ide.org>

Andre Hedrick wrote:
> 
> Daniel,
> 
> Would it be great if Linux did not have such a lame design to handle the
> these problems?  Just imaging if we had a properly formed
> FS/BLOCK/MAIN-LOOP/LOW_LEVEL model; whereas, an error of this nature in a
> write to media failure could be passed back up the pathway to the FS and
> request the FS to re-issue the storing of data to a new location.
> 
> To bad the global design lacks this ablitity and I suspect that nobody
> gives a damn, or even worse ever thought of this idea.
> 
> Now the importance of model is not to promote the use of dying media, but
> to be able to secure the content in buffer-cache, from app.-space, or
> user-space to the media and flag the UID(0) that we are in deep DOO-DOO
> and you better start backing up the content now.

For the filesystems with which I am familiar, this feature would
be quite difficult to implement.  Quite difficult indeed.  And given
that it only provides recovery for write errors, its value seems
questionable.

Much easier would be for those applications which really care about
data integrity to fsync() the file before closing it.  If either of those
calls returns an error, the *application* should take some form of
action to preserve the data.   MTAs do this, for example.

That being said, our propagation of I/O errors is a bit wobbly in places
(and the loop device hides write IO errors completely).  But that's a
separate issue.

On this one, I would be more interested in the opinion of sophisticated
*users* of linux rather than kernel developers, btw.  Whether this is
a valuable feature.


> I am just waiting to rip somebody's lunch who disagrees with me on the
> importance of data-recovery and relocation upon media failures.  Any
> points claiming it is not important because the predictive nature of
> device failure is unknown, should maybe ask an expert in the industry to
> get you the answer.  So lets have some fun and light off a really good
> flame war!
> 

umm... Daniel's error was on a read.  The data is not, by definition,
in memory.   It's gone.


What percentage of disk errors occur on writes, as opposed to reads?
If errors-on-writes preponderate then maybe you're on to something.
But I don't think they do?

  reply	other threads:[~2001-12-23  7:55 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-06  6:13 hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error } Daniel Stodden
2001-12-06  6:55 ` Sven.Riedel
2001-12-06 15:04 ` Matthias Andree
2001-12-23  7:24 ` Andre Hedrick
2001-12-23  7:53   ` Andrew Morton [this message]
2001-12-22 20:25     ` T. A.
2001-12-23 11:18     ` Peter Osterlund
2001-12-23 13:31   ` Alan Cox
2001-12-23 22:08     ` Andre Hedrick
2001-12-27 14:54       ` Jens Axboe
2001-12-27 16:42         ` Alan Cox
2001-12-27 16:51           ` Jens Axboe
2001-12-27 17:46             ` Linus Torvalds
2001-12-27 18:32               ` Andre Hedrick
2001-12-27 21:15               ` Legacy Fishtank
2001-12-27 17:50             ` Alan Cox
2001-12-28  2:05         ` Andre Hedrick
2001-12-28 10:59           ` Jens Axboe
2001-12-28 12:29             ` Rik van Riel
2001-12-28 12:33               ` Jens Axboe
2001-12-28 13:00                 ` Jens Axboe
2001-12-28 19:30                 ` Peter Osterlund
2001-12-29 15:07                   ` Jens Axboe
2001-12-28 20:23             ` Andre Hedrick
2001-12-29 14:15               ` Jens Axboe
2001-12-29 20:58                 ` You WIN Andre Hedrick
2001-12-31 12:58                   ` Jens Axboe

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=3C258D76.BE259944@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=andre@linux-ide.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stodden@in.tum.de \
    /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