diff options
author | Karel Zak | 2007-06-29 11:38:54 +0200 |
---|---|---|
committer | Karel Zak | 2007-06-29 11:38:54 +0200 |
commit | c2a1e7880895bbd0ecdd50984ebbf9e68b745e8e (patch) | |
tree | d6c5b8cb681961f8f1369f5375b7078e8e563fad /disk-utils/blockdev.8 | |
parent | agetty: check gethostname() return value (diff) | |
download | kernel-qcow2-util-linux-c2a1e7880895bbd0ecdd50984ebbf9e68b745e8e.tar.gz kernel-qcow2-util-linux-c2a1e7880895bbd0ecdd50984ebbf9e68b745e8e.tar.xz kernel-qcow2-util-linux-c2a1e7880895bbd0ecdd50984ebbf9e68b745e8e.zip |
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 <kzak@redhat.com>
Diffstat (limited to 'disk-utils/blockdev.8')
-rw-r--r-- | disk-utils/blockdev.8 | 6 |
1 files changed, 6 insertions, 0 deletions
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 |