Hello community, here is the log from the commit of package hdparm checked in at Fri Aug 10 17:06:52 CEST 2007. -------- --- hdparm/hdparm.changes 2007-06-20 00:37:09.000000000 +0200 +++ /mounts/work_src_done/STABLE/hdparm/hdparm.changes 2007-08-10 12:30:50.332473000 +0200 @@ -1,0 +2,8 @@ +Fri Aug 10 12:30:38 CEST 2007 - ro@suse.de + +- update to 7.7 + - fixed bug whereby old data was shown after settings changed (eg. with -W0) + - removed old notes about a "correction factor" from man page -tT descriptions + - retry open with O_RDONLY if O_RDWR fails with errno==EROFS + +------------------------------------------------------------------- Old: ---- hdparm-7.6.tar.bz2 New: ---- hdparm-7.7.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hdparm.spec ++++++ --- /var/tmp/diff_new_pack.pz1881/_old 2007-08-10 17:06:46.000000000 +0200 +++ /var/tmp/diff_new_pack.pz1881/_new 2007-08-10 17:06:46.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package hdparm (Version 7.6) +# spec file for package hdparm (Version 7.7) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -16,7 +16,7 @@ PreReq: %insserv_prereq %fillup_prereq coreutils Provides: base:/sbin/hdparm Autoreqprov: on -Version: 7.6 +Version: 7.7 Release: 1 Summary: A Program to Get and Set Hard Disk Parameters Source: hdparm-%{version}.tar.bz2 @@ -112,6 +112,11 @@ /var/adm/fillup-templates/sysconfig.ide %changelog +* Fri Aug 10 2007 - ro@suse.de +- update to 7.7 + - fixed bug whereby old data was shown after settings changed (eg. with -W0) + - removed old notes about a "correction factor" from man page -tT descriptions + - retry open with O_RDONLY if O_RDWR fails with errno==EROFS * Wed Jun 20 2007 - ro@suse.de - update to 7.6 - added -F flag to flush on-drive write cache buffer ++++++ hdparm-7.6.tar.bz2 -> hdparm-7.7.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hdparm-7.6/Changelog new/hdparm-7.7/Changelog --- old/hdparm-7.6/Changelog 2007-06-20 00:09:17.000000000 +0200 +++ new/hdparm-7.7/Changelog 2007-08-08 18:07:12.000000000 +0200 @@ -1,3 +1,7 @@ +hdparm-7.7 + - fixed bug whereby old data was shown after settings changed (eg. with -W0) + - removed old notes about a "correction factor" from man page -tT descriptions + - retry open with O_RDONLY if O_RDWR fails with errno==EROFS hdparm-7.6 - added -F flag to flush on-drive write cache buffer - replaced use of shm* functions with of mmap()/mlock() diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hdparm-7.6/hdparm.8 new/hdparm-7.7/hdparm.8 --- old/hdparm-7.6/hdparm.8 2007-06-19 23:57:19.000000000 +0200 +++ new/hdparm-7.7/hdparm.8 2007-08-08 18:07:34.000000000 +0200 @@ -1,4 +1,4 @@ -.TH HDPARM 8 "June 2007" "Version 7.6" +.TH HDPARM 8 "August 2007" "Version 7.7" .SH NAME hdparm \- get/set hard disk parameters @@ -365,13 +365,6 @@ of reading directly from the Linux buffer cache without disk access. This measurement is essentially an indication of the throughput of the processor, cache, and memory of the system under test. -If the -.I -t -flag is also specified, then a correction factor based on the outcome of -.I -T -will be incorporated into the result reported for the -.I -t -operation. .TP .I -t Perform timings of device reads for benchmark and comparison purposes. @@ -385,13 +378,6 @@ processing of .I -t using the BLKFLSBUF ioctl. -If the -.I -T -flag is also specified, then a correction factor based on the outcome of -.I -T -will be incorporated into the result reported for the -.I -t -operation. .TP .I -u Get/set interrupt-unmask flag for the drive. A setting of diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hdparm-7.6/hdparm.c new/hdparm-7.7/hdparm.c --- old/hdparm-7.6/hdparm.c 2007-06-19 23:57:12.000000000 +0200 +++ new/hdparm-7.7/hdparm.c 2007-08-08 18:07:21.000000000 +0200 @@ -24,7 +24,7 @@ extern const char *minor_str[]; -#define VERSION "v7.6" +#define VERSION "v7.7" #ifndef O_DIRECT #define O_DIRECT 040000 /* direct disk access, not easily obtained from headers */ @@ -809,10 +809,18 @@ fd = open (devname, open_flags); if (fd < 0) { - int err = errno; + int err; + if (errno == EROFS) { + open_flags &= ~O_WRONLY; + fd = open (devname, open_flags); + if (fd >= 0) + goto open_ok; + } + err = errno; perror(devname); exit(err); } +open_ok: if (!quiet) printf("\n%s:\n", devname); @@ -1103,6 +1111,7 @@ fprintf(stderr, "ata status=0x%02x ata error=0x%02x\n", args[0], args[1]); } } + id = (void *)-1; /* force re-IDENTIFY in case something above modified settings */ if (get_hitachi_temp) { __u8 args[4] = {0xf0,0,0x01,0}; /* "Sense Condition", vendor-specific */ if (do_drive_cmd(fd, args)) diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hdparm-7.6/hdparm.lsm new/hdparm-7.7/hdparm.lsm --- old/hdparm-7.6/hdparm.lsm 2007-06-20 00:00:53.000000000 +0200 +++ new/hdparm-7.7/hdparm.lsm 2007-08-08 18:08:32.000000000 +0200 @@ -1,8 +1,9 @@ Begin4 Title: hdparm -Version: 7.6 -Entered-date: 2007-06-19 +Version: 7.7 +Entered-date: 2007-08-08 Description: hdparm - get/set hard disk parameters for Linux IDE drives. + v7.7 fixed bug with incorrect settings shown after -W0 (and others) v7.6 new -F flag; re-allow use of --security-freeze with other flags v7.5 beef up warnings for -s1: Joe User should never use this flag! v7.4 added CFA advanced timing info @@ -62,7 +63,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 - 62K hdparm-7.6.tar.gz + 62K hdparm-7.7.tar.gz 1K hdparm.lsm Platforms: Linux, kernels 2.2 through 2.6 Copying-policy: BSD License ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de