Package: hdparm
Version: 9.12-2~fjp
Severity: normal
Tags: patch

# hdparm --direct -t /dev/sda
/dev/sda: Not a directory

Patch (direct from Mark Lord :-) that fixes the issue:
--- hdparm-9.12/hdparm.c        2009-02-26 13:10:22.000000000 -0500
+++ hdparm/hdparm.c     2009-03-14 15:17:10.000000000 -0400
@@ -4,6 +4,7 @@
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
+#define __USE_GNU      /* for O_DIRECT */
 #include <fcntl.h>
 #include <errno.h>
 #include <ctype.h>
@@ -25,7 +26,7 @@
 
 extern const char *minor_str[];
 
-#define VERSION "v9.12"
+#define VERSION "v9.12+"
 
 #ifndef O_DIRECT
 #define O_DIRECT       040000  /* direct disk access, not easily obtained from 
headers */

Cheers,
FJP

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.29-rc8
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages hdparm depends on:
ii  libc6                         2.9-5      GNU C Library: Shared libraries
ii  libgcc1                       1:4.3.3-5  GCC support library
ii  lsb-base                      3.2-20     Linux Standard Base 3.2 init scrip

hdparm recommends no packages.

Versions of packages hdparm suggests:
pn  apmd                          <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to