New upstream version 1.21

This commit is contained in:
root
2025-08-06 15:37:55 +02:00
parent 0343893f09
commit 0ef82355c6
40 changed files with 3389 additions and 1136 deletions

226
debian/changelog vendored
View File

@@ -1,70 +1,214 @@
hd-idle (1.05) unstable; urgency=low
hd-idle (1.21) unstable; urgency=medium
* Allow SCSI device names with more than one character (e.g. sdaa) in case
there are more than 26 SCSI targets.
[ Gray Xu ]
* Use GivenName instead of Name in the log
-- Christian Mueller <cm1@mumac.de> Sun, 6 Apr 2014 22:02:00 +0200
[ Andoni del Olmo ]
* Support Jmicron USB Bridge Controller for ATA command
hd-idle (1.04) unstable; urgency=low
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sun, 22 Oct 2023 09:55:29 +0200
* Make hd-idle's build environment compatible to Debian package management;
this effort is meant to allow hd-idle to become an official Debian package
* Man page for hd-idle
hd-idle (1.20) unstable; urgency=medium
-- Christian Mueller <cm1@mumac.de> Fri, 30 Sep 2011 22:35:12 +0200
* Fix force hd-idle into background in init script
* Fix missing man page
hd-idle (1.03) unstable; urgency=low
* Use %u in dprintf() when reporting number of reads and writes (the
corresponding variable is an unsigned int).
* Fix example in README where the parameter "-a" was written as "-n".
-- Andoni del Olmo <andoni.delolmo@gmail.com> Fri, 17 Feb 2023 16:54:38 +0100
-- Christian Mueller <cm1@mumac.de> Sun, 5 Dec 2010 19:25:51 +0100
hd-idle (1.19) unstable; urgency=medium
hd-idle (1.02) unstable; urgency=low
[ Benjamin Engele ]
* Support more than 26 disks.
* In case the SCSI stop unit command fails with "check condition", print a
hex dump of the sense buffer to stderr. This is supposed to help
debugging.
[ Paul Webster ]
* Use explicit uint64
-- Christian Mueller <cm1@mumac.de> Sat, 6 Nov 2010 15:47:00 +0100
[ Benjamin Engele ]
* Use standby instead of stop command.
* Support configuring power condition.
* Add and describe -p parameter usage.
* Adjusted documentation of power condition.
hd-idle (1.01) unstable; urgency=low
[ Martin Oemus ]
* fixed poolInterval calculation when using idle intervals of 0
[ Andoni del Olmo ]
* fixed Use UNIX time to calculate skew interval
-- Andoni del Olmo <andoni.delolmo@gmail.com> Thu, 09 Feb 2023 11:55:12 +0100
hd-idle (1.18) unstable; urgency=medium
* fix cross platform compilation
* simplify package generation in rules file
* Complete the list of targets for the service restart
-- Andoni del Olmo <andoni.delolmo@gmail.com> Wed, 17 Aug 2022 13:02:42 +0200
hd-idle (1.17) unstable; urgency=medium
[ Alexander Raab ]
* Readme cosmetics
[ Andoni del Olmo ]
* restart service after suspend
* go mod tidy
* Update readme with instructions to build with golang 17 or higher
* Add Makefile
* build debian package compiling with Makefile
* document usage of LUKS encrypted devices
* Redo explanation of how the log file works. Thanks to rabelux.
* restart service after hibernate
[ Sylvain Pasche ]
* Get statistics from device mapper devices
[ Andoni del Olmo ]
* use /sys/class/block/%s/holders for holderGetter + add test
* add test for statsForDisk
-- Andoni del Olmo <andoni.delolmo@gmail.com> Thu, 28 Jul 2022 18:12:46 +0200
hd-idle (1.16) unstable; urgency=medium
[ Maximilian Bichel ]
* Update help and man page to inform that "i" parameter with value zero never spins down disks.
[ Zhenyu Wu ]
* Try both ATA standby commands before fail.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sun, 05 Sep 2021 19:45:17 +0200
hd-idle (1.15) unstable; urgency=medium
* Handle disks with no partitions.
Encrypted disks do not have any partitions. In this case, the disk level activity has to be taken into
consideration.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Mon, 05 Apr 2021 09:39:11 +0200
hd-idle (1.14) unstable; urgency=medium
* Add logrotate for log file /var/log/hd-idle.log
* Use partitions read/write to calculate disk activity:
It changes the method to calculate disk activity. Now the disk activity is calculated by watching read/write
changes on partition level instead of disk level.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sun, 28 Mar 2021 14:34:51 +0200
hd-idle (1.13) unstable; urgency=medium
* Fix crash when required arguments are not given. Now it will fail
gracefully when required arguments are missing.
* Add SystemV init script.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Thu, 04 Mar 2021 20:33:26 +0100
hd-idle (1.12) unstable; urgency=medium
* Fix inconsistent spin down log. The release v1.11 changed the log output on spin down to
"/dev/sda spindown". Now is back to the format "sda spindown".
* Fix typo in help -h flag. This bug prevented showing the help on cli.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sat, 05 Dec 2020 15:43:05 +0100
hd-idle (1.11) unstable; urgency=medium
* Ignore sense response data for ata command to prevent error on arm64.
* Allow set command type in combination with -t option.
* Remove go-co-op dependency.
* Clean control and man page.
* Add copyright.
* Update readme. No need for GOPATH anymore.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sat, 31 Oct 2020 21:43:04 +0100
hd-idle (1.10) unstable; urgency=medium
* Check sectors read/write to determine disk activity
* Package. Move debian files to debian dir
* Package. Simplify rules and delete config handle system
* Update readme. Explain logs
* Update readme. Entry to response not ok error
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sun, 09 Aug 2020 10:26:32 +0200
hd-idle (1.9) unstable; urgency=medium
* Improve log on start up and ATA error reporting.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Wed, 11 Mar 2020 10:25:00 +0200
hd-idle (1.8) unstable; urgency=medium
* Allow usage of symlinks that point to partitions. Like: by-label, by-partlabel,
by-partuuid and by-uuid.
* Improve error handling when spin down fails.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Wed, 23 Oct 2019 21:15:00 +0200
hd-idle (1.7) unstable; urgency=medium
* Change package section to admin and priority to optional.
* Fix man page format error.
* Move man page to section 8 (System administration commands and daemons).
* Sign package.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sun, 8 Sep 2019 08:47:00 +0200
hd-idle (1.6) unstable; urgency=low
* The parameter "-s" allows to resolve symlinks for disk names also in runtime.
It is disable by default, because resolving symlinks causes an overhead.
That means that disk symlinks only get resolved on start up by default.
If the parameter "-s" is set to 1, disk symlinks will be also resolve during
execution until the symlink is resolved.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Wed, 28 Aug 2019 19:33:00 +0100
hd-idle (1.5) unstable; urgency=low
* Monitor the skew between monitoring cycles, on discovery of clock skew
reset the drive spin_down status to "spun up" and reset the time to current
in order to capture potential high loading or (more likely) recovery from
suspend or sleep
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sat, 13 Aug 2019 21:15:00 +0100
hd-idle (1.4) unstable; urgency=low
* The parameter "-a" now also supports symlinks for disk names. Thus, disks
can be specified using something like /dev/disk/by-uuid/... Use "-d" to
verify that the resulting disk name is what you want.
Please note that disk names are resolved to device nodes at startup. Also,
since many entries in /dev/disk/by-xxx are actually partitions, partition
numbers are automatically removed from the resulting device node.
* Not really a bug, but the disk name comparison used strstr which is a bit
useless because only disks starting with "sd" and a single letter after
that are currently considered. Replaced the comparison with strcmp()
* Simply log spinup.
-- Christian Mueller <cm1@mumac.de> Fri, 26 Feb 2010 14:03:44 +0100
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sat, 5 Jan 2019 18:42:00 +0100
hd-idle (1.00) unstable; urgency=low
hd-idle (1.3) unstable; urgency=low
* New parameter "-a" to allow selecting idle timeouts for individual disks;
compatibility to previous releases is maintained by having an implicit
default which matches all SCSI disks
* Set sleep time to 1/10th of the shortest idle time.
* Changed comparison operator for idle periods from '>' to '>=' to prevent
adding one polling interval to idle time
-- Andoni del Olmo <andoni.delolmo@gmail.com> Fri, 5 Oct 2018 20:47:10 +0100
* Changed sleep time before calling sync after updating the log file to 1s
(from 3s) to accumulate fewer dirty blocks before synching. It's still
a compromize but the log file is for debugging purposes, anyway. A test
with fsync() was unsuccessful because the next bdflush-initiated sync
still caused spin-ups.
hd-idle (1.2) unstable; urgency=low
-- Christian Mueller <cm1@mumac.de> Wed, 18 Nov 2009 20:53:17 +0100
* Persist user's config across package upgrades.
hd-idle (0.99) unstable; urgency=low
-- Andoni del Olmo <andoni.delolmo@gmail.com> Mon, 17 Sep 2018 22:03:10 +0100
* Initial Release.
hd-idle (1.1) unstable; urgency=low
-- Christian Mueller <cm1@mumac.de> Mon, 23 Apr 2007 22:03:10 +0100
* Add missing feature to spin-down the specified disk immediately.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sun, 16 Sep 2018 18:13:10 +0100
hd-idle (1.0) unstable; urgency=low
* Add "ata" api call to stop devices on top of the original functionality.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sun, 16 Sep 2018 10:01:10 +0100