Re: invalidate_buffers() not working?

From: Guest section DW (dwguest@win.tue.nl)
Date: Sat Mar 04 2000 - 20:13:49 EST


On Sat, Mar 04, 2000 at 08:28:36PM +0000, Tigran Aivazian wrote:

> Why? I thought once the disk has been inserted *and* the block device
> layer has been informed e.g. by forcing BLKRRPART (I checked sd.c but
> presumably other block devices do the same) the next bread() will return
> the block of the new disk? Almost certainly a bug in my module :)

In principle BLKRRPART does what its name says: it rereads the
partition table. If this changes partitions, then blocks that belong
to these partitions must be discarded. There is no reason why BLKRRPART
should discard blocks belonging to the entire disk.
The ioctl for discarding buffers is BLKFLSBUF.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:17 EST