Re: How can I force a read?

From: Andries Brouwer (aeb@veritas.com)
Date: Sat May 20 2000 - 08:54:27 EDT

  • Next message: Lorenzo Allegrucci: "Re: A variant of mlockall()"

    On Thu, May 18, 2000 at 10:13:54PM +0200, Pavel Machek wrote:

    > > > Is there a way to tell the fs
    > > > to force an actual read from the disk?
    > >
    > > These 2 ioctl()s against disk devices (e.g. sd and hd)
    > > look like they could be of interest:
    > >
    > > BLKFLSBUF [instructs disk subsystem to flush buffers]
    >
    > It would be nice if some userland utility existed that would do
    > this... Or is there one?

    Yes, there is. Try
            blockdev --flushbufs /dev/foo

    (blockdev is found in recent util-linux distributions).

    Andries

    -
    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 : Sat May 20 2000 - 08:59:13 EDT