ioctl to discard clean buffers?

Ulrich Windl (Ulrich.Windl@rz.uni-regensburg.de)
Mon, 18 Mar 1996 09:35:21 +0100


I think there's currently one an ioctl() to flush dirty buffers, and
then discard the buffers (hope there are no race conditions ;-))

Is the a ioctl() to just invalidate clean buffers? A friend has some
bad hardware that sometimes gets an undetected read error from
/dev/sda. As the error is rather rare, re-reading the file would
help.

Ulrich