Hello community,
here is the log from the commit of package hdparm for openSUSE:Factory
checked in at Mon Feb 16 12:17:27 CET 2009.
--------
--- hdparm/hdparm.changes 2009-01-30 11:31:49.000000000 +0100
+++ /mounts/work_src_done/STABLE/hdparm/hdparm.changes 2009-02-16 10:50:51.000000000 +0100
@@ -1,0 +2,7 @@
+Mon Feb 16 10:43:58 CET 2009 - mseben@suse.cz
+
+- update to version 9.11
+ * switch back to ATA_16 by default: required by libata for ATAPI devices
+ * add --prefer-ata12 to force use of ATA_12 when needed (some USB enclosures)
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
hdparm-9.10-nostrip.patch
hdparm-9.10.tar.bz2
New:
----
hdparm-9.11-nostrip.patch
hdparm-9.11.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ hdparm.spec ++++++
--- /var/tmp/diff_new_pack.QI4243/_old 2009-02-16 12:17:13.000000000 +0100
+++ /var/tmp/diff_new_pack.QI4243/_new 2009-02-16 12:17:13.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package hdparm (Version 9.10)
+# spec file for package hdparm (Version 9.11)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -24,7 +24,7 @@
PreReq: %insserv_prereq %fillup_prereq coreutils
Provides: base:/sbin/hdparm
AutoReqProv: on
-Version: 9.10
+Version: 9.11
Release: 1
Summary: A Program to Get and Set Hard Disk Parameters
Source: %{name}-%{version}.tar.bz2
@@ -116,6 +116,10 @@
/var/adm/fillup-templates/sysconfig.ide
%changelog
+* Mon Feb 16 2009 mseben@suse.cz
+- update to version 9.11
+ * switch back to ATA_16 by default: required by libata for ATAPI devices
+ * add --prefer-ata12 to force use of ATA_12 when needed (some USB enclosures)
* Fri Jan 30 2009 mseben@suse.cz
- update to version 9.10
* try and improve CF card detection
++++++ hdparm-9.10-nostrip.patch -> hdparm-9.11-nostrip.patch ++++++
++++++ hdparm-9.10.tar.bz2 -> hdparm-9.11.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hdparm-9.10/Changelog new/hdparm-9.11/Changelog
--- old/hdparm-9.10/Changelog 2009-01-28 15:56:26.000000000 +0100
+++ new/hdparm-9.11/Changelog 2009-01-29 20:38:12.000000000 +0100
@@ -1,3 +1,6 @@
+hdparm-9.11
+ - switch back to ATA_16 by default: required by libata for ATAPI devices
+ - add --prefer-ata12 to force use of ATA_12 when needed (some USB enclosures)
hdparm-9.10
- try and improve CF card detection
- fix display of mwdma modes 3,4 for CF cards
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hdparm-9.10/hdparm.8 new/hdparm-9.11/hdparm.8
--- old/hdparm-9.10/hdparm.8 2009-01-28 15:56:47.000000000 +0100
+++ new/hdparm-9.11/hdparm.8 2009-01-29 20:36:15.000000000 +0100
@@ -1,4 +1,4 @@
-.TH HDPARM 8 "January 2009" "Version 9.10"
+.TH HDPARM 8 "January 2009" "Version 9.11"
.SH NAME
hdparm \- get/set SATA/IDE device parameters
@@ -450,6 +450,14 @@
Not all drives support this feature, and it was dropped from the offical spec
as of ATA-4.
.TP
+.I --prefer-ata12
+When using the SAT (SCSI ATA Translation) protocol, hdparm normally prefers
+to use the 16-byte command format whenever possible.
+But some USB drive enclosures don't work correctly with 16-byte commands.
+This flag can be used to force use of the smaller 12-byte command format
+with such drives. hdparm will still revert to 16-byte commands for things
+that cannot be done with the 12-byte format (eg. sector accesses beyond 28-bits).
+.TP
.I -q
Handle the next flag quietly, suppressing normal output (but not error messages).
This is useful for reducing screen clutter when running from system startup scripts.
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hdparm-9.10/hdparm.c new/hdparm-9.11/hdparm.c
--- old/hdparm-9.10/hdparm.c 2009-01-28 15:56:35.000000000 +0100
+++ new/hdparm-9.11/hdparm.c 2009-01-29 20:32:52.000000000 +0100
@@ -25,7 +25,7 @@
extern const char *minor_str[];
-#define VERSION "v9.10"
+#define VERSION "v9.11"
#ifndef O_DIRECT
#define O_DIRECT 040000 /* direct disk access, not easily obtained from headers */
@@ -49,6 +49,7 @@
char *progname;
int verbose = 0;
+int prefer_ata12 = 0;
static int do_defaults = 0, do_flush = 0, do_ctimings, do_timings = 0;
static int do_identity = 0, get_geom = 0, noisy = 1, quiet = 0;
static int do_flush_wcache = 0;
@@ -1875,6 +1876,7 @@
" --Istdin read identify data from stdin as ASCII hex\n"
" --Istdout write identify data to stdout as ASCII hex\n"
" --make-bad-sector deliberately corrupt a sector directly on the media (VERY DANGEROUS)\n"
+ " --prefer-ata12 use 12-byte (instead of 16-byte) SAT commands when possible\n"
" --read-sector read and dump (in hex) a sector directly from the media\n"
" --security-help display help for ATA security commands\n"
" --verbose display extra diagnostics from some commands\n"
@@ -2193,6 +2195,9 @@
if (0 == strcasecmp(name, "verbose")) {
verbose = 1;
--num_flags_processed; /* doesn't count as an action flag */
+ } else if (0 == strcasecmp(name, "prefer-ata12")) {
+ prefer_ata12 = 1;
+ --num_flags_processed; /* doesn't count as an action flag */
} else if (0 == strcasecmp(name, "yes-i-know-what-i-am-doing")) {
i_know_what_i_am_doing = 1;
--num_flags_processed; /* doesn't count as an action flag */
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hdparm-9.10/hdparm.lsm new/hdparm-9.11/hdparm.lsm
--- old/hdparm-9.10/hdparm.lsm 2009-01-28 15:57:19.000000000 +0100
+++ new/hdparm-9.11/hdparm.lsm 2009-01-29 20:37:47.000000000 +0100
@@ -1,8 +1,9 @@
Begin4
Title: hdparm
-Version: 9.10
-Entered-date: 2009-01-28
+Version: 9.11
+Entered-date: 2009-01-29
Description: hdparm - get/set hard disk parameters for Linux SATA/IDE drives.
+ v9.11 Fixed -I for ATAPI; added --prefer-ata12 for some USB enclosures
v9.10 Fixes for CF card detection/reporting
v9.9 Recalculate cyls when kernel returns a truncated value
v9.8 FIX -N for non-LBA48 drives
@@ -84,7 +85,7 @@
Maintained-by: mlord@pobox.com (Mark Lord)
Primary-site: http://sourceforge.net/projects/hdparm/
Alternate-site: http://www.ibiblio.org/pub/Linux/system/hardware
- 96K hdparm-9.10.tar.gz
+ 96K hdparm-9.11.tar.gz
4K hdparm.lsm
Platforms: Linux, kernels 2.2 through 2.6
Copying-policy: BSD License
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hdparm-9.10/sgio.c new/hdparm-9.11/sgio.c
--- old/hdparm-9.10/sgio.c 2009-01-09 20:13:38.000000000 +0100
+++ new/hdparm-9.11/sgio.c 2009-01-29 20:32:09.000000000 +0100
@@ -18,6 +18,7 @@
#include