From dc14aa6e7757e86370ced32e818d0b7e483d688e Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Fri, 30 Apr 2021 17:07:33 +0200 Subject: [PATCH] up to 9.61 --- hdparm-ioctl.patch | 6 ++++-- hdparm-man-patch | 4 ++-- hdparm.spec | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/hdparm-ioctl.patch b/hdparm-ioctl.patch index 3ee962c..1a40dbc 100644 --- a/hdparm-ioctl.patch +++ b/hdparm-ioctl.patch @@ -1,17 +1,19 @@ --- hdparm-8.8/hdparm.h.orig 2008-06-03 17:35:07.000000000 +0200 +++ hdparm-8.8/hdparm.h 2008-06-12 18:15:49.971172186 +0200 -@@ -75,5 +75,5 @@ +@@ -75,7 +75,7 @@ #ifdef BLKGETSIZE64 #undef BLKGETSIZE64 #endif -#define BLKGETSIZE64 _IOR(0x12,114,__u64) +#define BLKGETSIZE64 _IOR(0x12,114,size_t) /* broken __u64 arg actually */ + + /* --- hdparm-9.3/Makefile.orig 2008-11-02 23:18:05.000000000 +0100 +++ hdparm-9.3/Makefile 2008-11-06 21:30:37.321553760 +0100 @@ -31,6 +31,8 @@ $(CC) $(LDFLAGS) -o hdparm $(OBJS) - strip hdparm + $(STRIP) hdparm +geom.o: hdparm.h + diff --git a/hdparm-man-patch b/hdparm-man-patch index 092e047..aa3118f 100644 --- a/hdparm-man-patch +++ b/hdparm-man-patch @@ -10,9 +10,9 @@ +.BR -Y , and .B -Z - flags can be used to manipulate the IDE power modes. + options can be used to manipulate the IDE power modes. @@ -352,8 +354,8 @@ - flag can be used to find the maximum setting supported by an installed drive + option can be used to find the maximum setting supported by an installed drive (look for MaxMultSect in the output). Some drives claim to support multiple mode, but lose data at some settings. -Under rare circumstances, such failures can result in diff --git a/hdparm.spec b/hdparm.spec index 2aadb9c..08fb929 100644 --- a/hdparm.spec +++ b/hdparm.spec @@ -8,12 +8,12 @@ Summary(ru.UTF-8): Утилита для показа/настройки пар Summary(tr.UTF-8): (E)IDE/SATA/SAS sabit disklerle ilgili bazı parametreleri değiştirir Summary(uk.UTF-8): Утиліта для показу/установки параметрів жорстких дисків Name: hdparm -Version: 9.60 +Version: 9.61 Release: 1 License: BSD Group: Applications/System -Source0: http://downloads.sourceforge.net/hdparm/%{name}-%{version}.tar.gz -# Source0-md5: 25a791d47236c58801f8b27074f3ef93 +Source0: https://downloads.sourceforge.net/hdparm/%{name}-%{version}.tar.gz +# Source0-md5: 3ef06831e83890f0ba48f7a252b93325 Source1: %{name}.init Source2: %{name}.sysconfig Source3: %{name}.8.pl -- 2.44.0