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?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/