From c2a1e7880895bbd0ecdd50984ebbf9e68b745e8e Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 29 Jun 2007 11:38:54 +0200 Subject: blockdev: add BLKFRAGET/BLKFRASET ioctls In Linux 2.6 the BLKRASET ioctl has the desired effect for mounted file-systems. In Linux 2.4 it appears to set the number of blocks to read-ahead on the *device* as opposed to within a *file*, and the maximum value of this number is 255. As a result the invocation of blockdev will fail on Linux 2.4 for any usefully large value of READAHEAD, and will not in any case have the desired affect for fragmented files. (Based on the blockdev-getfra-setfra.patch Debian patch.) Signed-off-by: Karel Zak --- disk-utils/blockdev.8 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'disk-utils/blockdev.8') diff --git a/disk-utils/blockdev.8 b/disk-utils/blockdev.8 index bde64265f..86c29dd2f 100644 --- a/disk-utils/blockdev.8 +++ b/disk-utils/blockdev.8 @@ -48,6 +48,12 @@ Set readahead to .B \--getra Print readahead (in 512-byte sectors). .TP +.BI \--setfra " N" +Set filesystem readahead (same like --setra on 2.6 kernels). +.TP +.B \--getfra +Get filesystem readahead. +.TP .B \--flushbufs Flush buffers. .TP -- cgit v1.2.3-55-g7522