Re: linux-kernel-digest V1 #118

Eric Youngdale (eric@aib.com)
Thu, 20 Jul 1995 10:38:44 -0400


>It would be nice to allow filesystems to automatically move bad sectors
>to the bad block list, and possibly rewrite a block buffer to a newly
>reallocated block when it is discovered that a newly allocated block is
>bad. This would probably require a callback from the device driver to
>the filesystem layer to notify the filesystem that a particular block is
>bad.

For reads we already have this. The buffer will come back as
unlocked but not uptodate.

For writes, because of the delayed nature of things, we would need
a callback as Ted suggests. I am not sure, but it would appear that the
only way to do this is to add a function pointer to each buffer head, and
then modify each block device driver to use this if a write fails.

-Eric

-- 
"The woods are lovely, dark and deep.  But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."