Package: hdparm
Version: 9.15-1
Severity: normal
Tags: patch
Hi,
with the current version of hdparm, using -I on a dvd on 2.6.31 result in
outgoing cdb: 85 08 2e 00 00 00 00 00 00 00 00 00 00 40 ec 00
SG_IO: ATA_16 status=0x2, host_status=0x0, driver_status=0x0
SG_IO: bad response (not CHECK_CONDITION)
outgoing cdb: 85 08 2e 00 00 00 00 00 00 00 00 00 00 40 a1 00
SG_IO: ATA_16 status=0x2, host_status=0x0, driver_status=0x0
SG_IO: bad response (not CHECK_CONDITION)
HDIO_DRIVE_CMD(identify) failed: Invalid exchange
Trying legacy HDIO_DRIVE_CMD is not tried because ernno == EBADE.
Matthieu
PS : a trivial patch
--- sgio.c 2009-11-21 20:54:34.000000000 +0100
+++ sgio.c.n 2009-11-21 20:54:23.000000000 +0100
@@ -309,7 +309,7 @@
rc = sg16(fd, SG_READ, SG_PIO, &tf, data, data_bytes, 0);
if (rc == -1) {
- if (errno == EINVAL || errno == ENODEV)
+ if (errno == EINVAL || errno == ENODEV || errno == EBADE)
goto use_legacy_ioctl;
}
@@ -391,7 +391,7 @@
rc = sg16(fd, rw, SG_PIO, &tf, data, data_bytes, timeout_secs);
if (rc == -1) {
- if (errno == EINVAL || errno == ENODEV)
+ if (errno == EINVAL || errno == ENODEV || errno == EBADE)
goto use_legacy_ioctl;
}
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.31-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to fr_FR)
Shell: /bin/sh linked to /bin/bash
Versions of packages hdparm depends on:
ii libc6 2.10.1-7 GNU C Library: Shared libraries
ii lsb-base 3.2-23 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 [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]