This commit is contained in:
parent
4175aea634
commit
0a97dd0859
@ -1,16 +1,17 @@
|
|||||||
--- hdparm.c
|
--- hdparm.c
|
||||||
+++ hdparm.c
|
+++ hdparm.c
|
||||||
@@ -269,10 +269,9 @@
|
@@ -273,11 +273,10 @@
|
||||||
void flush_buffer_cache (int fd)
|
void flush_buffer_cache (int fd)
|
||||||
{
|
{
|
||||||
fsync (fd); /* flush buffers */
|
fsync (fd); /* flush buffers */
|
||||||
- if (ioctl(fd, BLKFLSBUF, NULL)) /* do it again, big time */
|
- if (ioctl(fd, BLKFLSBUF, NULL)) /* do it again, big time */
|
||||||
- perror("BLKFLSBUF failed");
|
- perror("BLKFLSBUF failed");
|
||||||
- if (do_drive_cmd(fd, NULL) && errno != EINVAL) /* await completion */
|
+ ioctl(fd, BLKFLSBUF, NULL);
|
||||||
|
/* await completion */
|
||||||
|
- if (do_drive_cmd(fd, NULL) && errno != EINVAL && errno != ENOTTY && errno != ENOIOCTLCMD)
|
||||||
- perror("HDIO_DRIVE_CMD(null) (wait for flush complete) failed");
|
- perror("HDIO_DRIVE_CMD(null) (wait for flush complete) failed");
|
||||||
+ ioctl(fd, BLKFLSBUF, NULL); /* do it again, big time */
|
|
||||||
+ if (errno != EINVAL && errno != EOPNOTSUPP)
|
+ if (errno != EINVAL && errno != EOPNOTSUPP)
|
||||||
+ do_drive_cmd(fd, NULL); /* await completion */
|
+ do_drive_cmd(fd, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int seek_to_zero (int fd)
|
int seek_to_zero (int fd)
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:aaf483244cc38fc1d7a334484404c614d799474ccefc30142305875bbc281086
|
|
||||||
size 55739
|
|
3
hdparm-7.4.tar.bz2
Normal file
3
hdparm-7.4.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c99918d6de97f88f517276d53fb486d3cbba6da983b99c846f3c6da7aba0e81a
|
||||||
|
size 56382
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 1 01:10:15 CEST 2007 - ro@suse.de
|
||||||
|
|
||||||
|
- update to 7.4
|
||||||
|
- ignore ENOTTY response from DRIVE_CMD(NULL)
|
||||||
|
- decode CFA advanced timing information
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 24 11:54:38 CEST 2007 - schwab@suse.de
|
Thu May 24 11:54:38 CEST 2007 - schwab@suse.de
|
||||||
|
|
||||||
|
10
hdparm.spec
10
hdparm.spec
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package hdparm (Version 7.3)
|
# spec file for package hdparm (Version 7.4)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# This file and all modifications and additions to the pristine
|
# This file and all modifications and additions to the pristine
|
||||||
@ -16,8 +16,8 @@ Group: Hardware/Other
|
|||||||
PreReq: %insserv_prereq %fillup_prereq coreutils
|
PreReq: %insserv_prereq %fillup_prereq coreutils
|
||||||
Provides: base:/sbin/hdparm
|
Provides: base:/sbin/hdparm
|
||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
Version: 7.3
|
Version: 7.4
|
||||||
Release: 9
|
Release: 1
|
||||||
Summary: A Program to Get and Set Hard Disk Parameters
|
Summary: A Program to Get and Set Hard Disk Parameters
|
||||||
Source: hdparm-%{version}.tar.bz2
|
Source: hdparm-%{version}.tar.bz2
|
||||||
Source1: 56-idedma.rules
|
Source1: 56-idedma.rules
|
||||||
@ -114,6 +114,10 @@ fi
|
|||||||
/var/adm/fillup-templates/sysconfig.ide
|
/var/adm/fillup-templates/sysconfig.ide
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 01 2007 - ro@suse.de
|
||||||
|
- update to 7.4
|
||||||
|
- ignore ENOTTY response from DRIVE_CMD(NULL)
|
||||||
|
- decode CFA advanced timing information
|
||||||
* Thu May 24 2007 - schwab@suse.de
|
* Thu May 24 2007 - schwab@suse.de
|
||||||
- fix_standby is x86-only.
|
- fix_standby is x86-only.
|
||||||
* Wed May 16 2007 - ro@suse.de
|
* Wed May 16 2007 - ro@suse.de
|
||||||
|
Loading…
Reference in New Issue
Block a user