- update to 9.60:
- support for ioSafe Solo with jMicron bridge, courtesy Matthias-Christian Ott. - decode more bits from id[69], courtesy Adrián Kálazi. - allow passing of custom LDFLAGS from the environment. - add new "static" target. - fix --dco-identify max sectors, courtesy of Paul Sultana. - get rid of leftover "unknown" variables from identify.c - fixed return values from get_log_page_data(). OBS-URL: https://build.opensuse.org/package/show/Base:System/hdparm?expand=0&rev=94
This commit is contained in:
parent
94ff671922
commit
32f2009eba
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9ae78e883f3ce071d32ee0f1b9a2845a634fc4dd94a434e653fdbef551c5e10f
|
||||
size 138845
|
3
hdparm-9.60.tar.gz
Normal file
3
hdparm-9.60.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8397739c73e44d5ab96c4aef28fa9c0147276d53a1b5657ce04c4565cf6635cc
|
||||
size 155220
|
@ -1,16 +1,17 @@
|
||||
diff -urEbwB hdparm-9.57/hdparm.c hdparm-9.57.new/hdparm.c
|
||||
--- hdparm-9.57/hdparm.c 2018-10-16 20:12:53.000000000 +0200
|
||||
+++ hdparm-9.57.new/hdparm.c 2018-10-18 10:15:54.448809739 +0200
|
||||
@@ -1197,7 +1197,7 @@
|
||||
struct stat stat;
|
||||
Index: hdparm-9.60/hdparm.c
|
||||
===================================================================
|
||||
--- hdparm-9.60.orig/hdparm.c
|
||||
+++ hdparm-9.60/hdparm.c
|
||||
@@ -1199,7 +1199,7 @@ static int abort_if_not_full_device (int
|
||||
struct stat st;
|
||||
__u64 start_lba;
|
||||
int i, err, shortened = 0;
|
||||
- char *fdevname = strdup(devname);
|
||||
+ char *fdevname = strdupa(devname);
|
||||
|
||||
if (0 == fstat(fd, &stat) && S_ISCHR(stat.st_mode))
|
||||
if (0 == fstat(fd, &st) && S_ISCHR(st.st_mode))
|
||||
return 0; /* skip geometry test for character (non-block) devices; eg. /dev/sg* */
|
||||
@@ -1210,7 +1210,7 @@
|
||||
@@ -1212,7 +1212,7 @@ static int abort_if_not_full_device (int
|
||||
}
|
||||
|
||||
if (!shortened)
|
||||
|
@ -1,6 +1,20 @@
|
||||
--- ./Makefile
|
||||
+++ ./Makefile
|
||||
@@ -14 +13,0 @@ CC ?= gcc
|
||||
Index: Makefile
|
||||
===================================================================
|
||||
--- Makefile.orig
|
||||
+++ Makefile
|
||||
@@ -11,7 +11,6 @@ mandir = $(manprefix)/share/man
|
||||
oldmandir = $(manprefix)/man
|
||||
|
||||
CC ?= gcc
|
||||
-STRIP ?= strip
|
||||
@@ -31 +29,0 @@ hdparm: hdparm.h sgio.h $(OBJS)
|
||||
|
||||
CFLAGS := -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(CFLAGS)
|
||||
|
||||
@@ -30,7 +29,6 @@ static:
|
||||
|
||||
hdparm: Makefile hdparm.h sgio.h $(OBJS)
|
||||
$(CC) $(LDFLAGS) -o hdparm $(OBJS)
|
||||
- $(STRIP) hdparm
|
||||
|
||||
hdparm.o: hdparm.h sgio.h
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
Index: hdparm-9.28/wiper/wiper.sh
|
||||
Index: hdparm-9.60/wiper/wiper.sh
|
||||
===================================================================
|
||||
--- hdparm-9.28.orig/wiper/wiper.sh
|
||||
+++ hdparm-9.28/wiper/wiper.sh
|
||||
@@ -41,6 +41,9 @@ function usage_error(){
|
||||
--- hdparm-9.60.orig/wiper/wiper.sh
|
||||
+++ hdparm-9.60/wiper/wiper.sh
|
||||
@@ -48,6 +48,9 @@ function usage_error(){
|
||||
|
||||
echo
|
||||
echo "${0##*/}: Linux SATA SSD TRIM utility, version $VERSION, by Mark Lord."
|
||||
|
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 20 12:46:21 UTC 2020 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 9.60:
|
||||
- support for ioSafe Solo with jMicron bridge, courtesy Matthias-Christian Ott.
|
||||
- decode more bits from id[69], courtesy Adrián Kálazi.
|
||||
- allow passing of custom LDFLAGS from the environment.
|
||||
- add new "static" target.
|
||||
- fix --dco-identify max sectors, courtesy of Paul Sultana.
|
||||
- get rid of leftover "unknown" variables from identify.c
|
||||
- fixed return values from get_log_page_data().
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 26 09:41:02 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: hdparm
|
||||
Version: 9.58
|
||||
Version: 9.60
|
||||
Release: 0
|
||||
Summary: A Program to get and set hard disk parameters
|
||||
License: SUSE-Permissive
|
||||
|
Loading…
Reference in New Issue
Block a user