Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package hdparm for openSUSE:Factory checked in at 2022-01-13 00:22:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hdparm (Old) and /work/SRC/openSUSE:Factory/.hdparm.new.1892 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hdparm" Thu Jan 13 00:22:11 2022 rev:77 rq:945646 version:9.63 Changes: -------- --- /work/SRC/openSUSE:Factory/hdparm/hdparm.changes 2021-05-15 23:16:29.740663884 +0200 +++ /work/SRC/openSUSE:Factory/.hdparm.new.1892/hdparm.changes 2022-01-13 00:22:31.339936799 +0100 @@ -1,0 +2,7 @@ +Tue Jan 11 18:06:50 UTC 2022 - Danilo Spinella <danilo.spine...@suse.com> + +- Update to 9.63: + * new --sanitize-overwrite-passes flag, courtesy Michal Grzedzicki. + * "Plurals patch" from Martin Guy. + +------------------------------------------------------------------- Old: ---- hdparm-9.62.tar.gz New: ---- hdparm-9.63.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hdparm.spec ++++++ --- /var/tmp/diff_new_pack.3mUOg4/_old 2022-01-13 00:22:32.091937340 +0100 +++ /var/tmp/diff_new_pack.3mUOg4/_new 2022-01-13 00:22:32.095937343 +0100 @@ -1,7 +1,7 @@ # # spec file for package hdparm # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: hdparm -Version: 9.62 +Version: 9.63 Release: 0 Summary: A Program to get and set hard disk parameters License: SUSE-Permissive ++++++ hdparm-9.62.tar.gz -> hdparm-9.63.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hdparm-9.62/Changelog new/hdparm-9.63/Changelog --- old/hdparm-9.62/Changelog 2021-05-10 16:59:24.000000000 +0200 +++ new/hdparm-9.63/Changelog 2022-01-10 17:48:18.000000000 +0100 @@ -1,3 +1,6 @@ +hdparm-9.63: + - new --sanitize-overwrite-passes flag, courtesy Michal Grzedzicki. + - "Plurals patch" from Martin Guy. hdparm-9.62: - Work around unexpected sign-extending of left-shifted unsigned values by gcc hdparm-9.61: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hdparm-9.62/hdparm.8 new/hdparm-9.63/hdparm.8 --- old/hdparm-9.62/hdparm.8 2021-05-10 16:58:29.000000000 +0200 +++ new/hdparm-9.63/hdparm.8 2022-01-10 17:48:51.000000000 +0100 @@ -1,4 +1,4 @@ -.TH HDPARM 8 "May 2021" "Version 9.62" +.TH HDPARM 8 "Jan 2022" "Version 9.63" .SH NAME hdparm \- get/set SATA/IDE device parameters diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hdparm-9.62/hdparm.c new/hdparm-9.63/hdparm.c --- old/hdparm-9.62/hdparm.c 2021-05-10 16:58:14.000000000 +0200 +++ new/hdparm-9.63/hdparm.c 2022-01-10 17:48:37.000000000 +0100 @@ -1,8 +1,8 @@ /* * hdparm.c - Command line interface to get/set hard disk parameters. - * - by Mark Lord (C) 1994-2018 -- freely distributable. + * - by Mark Lord (C) 1994-2022 -- freely distributable. */ -#define HDPARM_VERSION "v9.62" +#define HDPARM_VERSION "v9.63" #define _LARGEFILE64_SOURCE /*for lseek64*/ #define _BSD_SOURCE /* for strtoll() */ @@ -99,6 +99,7 @@ static int do_sanitize = 0; static __u16 sanitize_feature = 0; +static __u64 sanitize_overwrite_passes = 0; static __u32 ow_pattern = 0; static const char *sanitize_states_str[SANITIZE_STATE_NUMBER] = { "SD0 Sanitize Idle", @@ -625,14 +626,16 @@ unsigned int secs = standby * 5; unsigned int mins = secs / 60; secs %= 60; - if (mins) printf("%u minutes", mins); + if (mins) printf("%u minute%s", mins, + mins==1 ? "" : "s"); if (mins && secs) printf(" + "); if (secs) printf("%u seconds", secs); } else if (standby <= 251) { unsigned int mins = (standby - 240) * 30; unsigned int hrs = mins / 60; mins %= 60; - if (hrs) printf("%u hours", hrs); + if (hrs) printf("%u hour%s", hrs, + hrs==1 ? "" : "s"); if (hrs && mins) printf(" + "); if (mins) printf("%u minutes", mins); } else { @@ -896,6 +899,11 @@ r.iflags.bits.lob.lbam = 1; r.iflags.bits.hob.nsect = 1; + if (sanitize_feature == SANITIZE_OVERWRITE_EXT) { + r.oflags.bits.lob.nsect = 1; + r.lob.nsect = sanitize_overwrite_passes; + } + printf("Issuing %s command\n", description); if (do_taskfile_cmd(fd, &r, 10)) { err = errno; @@ -1971,6 +1979,7 @@ " --sanitize-crypto-scramble Change the internal encryption keys that used for used data\n" " --sanitize-freeze-lock Lock drive's sanitize features until next power cycle\n" " --sanitize-overwrite PATTERN Overwrite the internal media with constant PATTERN\n" + " --sanitize-overwrite-passes COUNT Number of overwrite passes from 0 to 7, default 0 means 16 passes\n" " --sanitize-status Show sanitize status information\n" " --security-help Display help for ATA security commands\n" " --set-sector-size Change logical sector size of drive\n" @@ -3267,6 +3276,9 @@ } else if (0 == strcasecmp(name, "direct")) { open_flags |= O_DIRECT; --num_flags_processed; /* doesn't count as an action flag */ + } else if (0 == strcasecmp(name, "sanitize-overwrite-passes")) { + get_u64_parm(0, 0, NULL, &sanitize_overwrite_passes, 0, 7, name, "Number of passes must be in range 0..7"); + --num_flags_processed; /* doesn't count as an action flag */ } else if (0 == strcasecmp(name, "drq-hsm-error")) { drq_hsm_error = 1; } else if (0 == strcasecmp(name, "dco-freeze")) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hdparm-9.62/hdparm.lsm new/hdparm-9.63/hdparm.lsm --- old/hdparm-9.62/hdparm.lsm 2021-05-10 17:00:09.000000000 +0200 +++ new/hdparm-9.63/hdparm.lsm 2022-01-10 17:51:46.000000000 +0100 @@ -1,8 +1,9 @@ Begin4 Title: hdparm -Version: 9.62 -Entered-date: 2021-05-10 +Version: 9.63 +Entered-date: 2022-01-10 Description: hdparm - get/set hard disk parameters for Linux SATA/IDE drives. + v9.63 new --sanitize-overwrite-passes flag, courtesy Michal Grzedzicki v9.62 work around unexpected sign-extending of left-shifted unsigned values by gcc v9.61 fixes for --set-sector-size and reporting of physical/logical sector sizes, courtesy of Western Digital v9.60 Add support for ioSafe Solo with jMicron USB/SATA bridge, courtesy Matthias-Christian Ott @@ -136,7 +137,7 @@ Maintained-by: ml...@pobox.com (Mark Lord) Primary-site: http://sourceforge.net/projects/hdparm/ Alternate-site: http://www.ibiblio.org/pub/Linux/system/hardware - 140K hdparm-9.62.tar.gz + 140K hdparm-9.63.tar.gz 7K hdparm.lsm Platforms: Linux Copying-policy: BSD License