Problems with FS buffering on Linux 2.2.14

Guest section DW dwguest en win.tue.nl
Sab Ene 22 06:24:42 CST 2000


On Fri, Jan 21, 2000 at 02:37:26PM +0000, Alan Cox wrote:

> > Is there a kernel compiling option I missed which tells the kernel to
> > remove the reading buffers after every umount, and if so, which one?
> 
> There isnt. There is however an ioctl for it. Have a look at man hdparm

These days (that is, since 2.10) util-linux comes with blockdev, a utility
to do block-device iocts by hand.

# ./blockdev -?
Usage: blockdev [-V] [-v|-q] commands devices
Available commands:
        --setro (set read-only)
        --setrw (set read-write)
        --getro (get read-only)
        --getss (get sectorsize)
        --getsize       (get size)
        --setra READAHEAD       (set readahead)
        --getra (get readahead)
        --flushbufs     (flush buffers)
        --rereadpt      (reread partition table)
#

Especially --flushbufs is often needed in scripts that
manipulate loop devices or partition tables.

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



Más información sobre la lista de distribución Ayuda