Package: util-linux
Version: 2.12r-6
Severity: normal
Tags: patch

The blockdev command does not currently support the BLKFRASET and
BLKFRAGET syscalls. This functionality is needed on 2.4 kernels to allow
laptop-mode-tools to set the filesystem readahead. See laptop-mode-tools
bug #355492 for more information. A patch to achieve the desired
functionality is attached. I'll try to submit it upstream as well, because this
functionality should really be in there.

Cheers,
Bart

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (700, 'unstable'), (600, 'testing'), (400, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14.2media
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages util-linux depends on:
ii  libc6         2.3.6-1                    GNU C Library: Shared libraries an
ii  libncurses5   5.5-1                      Shared libraries for terminal hand
ii  libslang2     2.0.5-3                    The S-Lang programming library - r
ii  libuuid1      1.38+1.39-WIP-2005.12.31-1 universally unique id library
ii  lsb-base      3.0-15                     Linux Standard Base 3.0 init scrip
ii  zlib1g        1:1.2.3-9                  compression library - runtime

util-linux recommends no packages.

-- no debconf information
--- blockdev.c.orig     2006-03-06 10:28:07.000000000 +0100
+++ blockdev.c  2006-03-06 10:42:05.000000000 +0100
@@ -23,6 +23,8 @@
 #define BLKFLSBUF  _IO(0x12,97)
 #define BLKRASET   _IO(0x12,98)
 #define BLKRAGET   _IO(0x12,99)
+#define BLKFRASET  _IO(0x12,100)
+#define BLKFRAGET  _IO(0x12,101)
 #define BLKSSZGET  _IO(0x12,104)
 #define BLKBSZGET  _IOR(0x12,112,size_t)
 #define BLKBSZSET  _IOW(0x12,113,size_t)
@@ -86,6 +88,12 @@
 #ifdef BLKRAGET
        { "--getra", "BLKRAGET", BLKRAGET, ARGLINTG, -1, NULL, N_("get 
readahead") },
 #endif
+#ifdef BLKFRASET
+       { "--setfra", "BLKFRASET", BLKFRASET, ARGINTA, 0, "FSREADAHEAD", 
N_("set filesystem readahead") },
+#endif
+#ifdef BLKFRAGET
+       { "--getfra", "BLKFRAGET", BLKFRAGET, ARGLINTG, -1, NULL, N_("get 
filesystem readahead") },
+#endif
 #ifdef BLKFLSBUF
        { "--flushbufs", "BLKFLSBUF", BLKFLSBUF, ARGNONE, 0, NULL, N_("flush 
buffers") },
 #endif

Reply via email to