Accepting request 642808 from home:jubalh:branches:Base:System

- Update to 9.57:
  * Added --set-sector-size flag, used to change logical sector
    size for drives which support multiple sector sizes.
  * Also updated various bits of hdparm to better cope with
    non-512 byte sectors.
  * Various other minor fixes/enhancements.
- Update hdparm-leak-fix.patch

OBS-URL: https://build.opensuse.org/request/show/642808
OBS-URL: https://build.opensuse.org/package/show/Base:System/hdparm?expand=0&rev=88
This commit is contained in:
Dirk Mueller 2018-10-23 07:14:51 +00:00 committed by Git OBS Bridge
parent e1e6963521
commit 4fc5cbeae0
5 changed files with 24 additions and 12 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6ff9ed695f1017396eec4101f990f114b7b0e0a04c5aa6369c0394053d16e4da
size 137213

3
hdparm-9.57.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d568db955a5428797f0b1677ef7cc8bab7756c6e7ff39f6c4a2b2c3640fe870
size 138791

View File

@ -1,15 +1,16 @@
--- hdparm.c.old 2009-08-02 22:08:56.000000000 +0200
+++ hdparm.c 2009-09-17 09:57:44.000000000 +0200
@@ -880,7 +880,7 @@
{
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;
__u64 start_lba;
int i, err, shortened = 0;
- char *fdevname = strdup(devname);
+ char *fdevname = strdupa(devname);
err = get_dev_geometry(fd, NULL, NULL, NULL, &start_lba, NULL);
if (err)
@@ -891,7 +891,7 @@
if (0 == fstat(fd, &stat) && S_ISCHR(stat.st_mode))
return 0; /* skip geometry test for character (non-block) devices; eg. /dev/sg* */
@@ -1210,7 +1210,7 @@
}
if (!shortened)

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Oct 18 08:16:40 UTC 2018 - mvetter@suse.com
- Update to 9.57:
* Added --set-sector-size flag, used to change logical sector
size for drives which support multiple sector sizes.
* Also updated various bits of hdparm to better cope with
non-512 byte sectors.
* Various other minor fixes/enhancements.
- Update hdparm-leak-fix.patch
-------------------------------------------------------------------
Fri Apr 20 14:20:48 UTC 2018 - kstreitova@suse.com

View File

@ -17,7 +17,7 @@
Name: hdparm
Version: 9.56
Version: 9.57
Release: 0
Summary: A Program to get and set hard disk parameters
License: SUSE-Permissive
@ -41,7 +41,7 @@ driver and IDE drives.
%setup -q
%patch1
%patch2 -p1
%patch3
%patch3 -p1
%patch4 -p1
%build