Commit graph

803 commits

Author SHA1 Message Date
Andrea Mazzoleni
781dd25025 Move the FLAG_IS_RELOCATED to dedicated shared flags to avoid data races 2026-03-18 12:02:05 +01:00
Andrea Mazzoleni
3f9b877183 Missing of fadvise is not a fatal error 2026-03-18 11:31:44 +01:00
Andrea Mazzoleni
c153898c9a Log devices mapping
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-03-16 12:43:23 +01:00
Andrea Mazzoleni
fa13703a7f Avoid a coverity warning
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-03-15 15:44:13 +01:00
Andrea Mazzoleni
df29e95cef Fix leak 2026-03-15 15:38:52 +01:00
Andrea Mazzoleni
5bd592b85c Decode smartctl Average 2026-03-15 13:15:31 +01:00
Andrea Mazzoleni
e24b169488 Identify wear level by attribute name and not by attribute id
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-03-15 02:47:36 +01:00
Andrea Mazzoleni
c449864fc7 Introduce "relocated" state to unify and replace "copied/removed" logic 2026-03-15 02:47:36 +01:00
Andrea Mazzoleni
189029749e Configuration is now required also for smart and probe commands
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
2026-03-12 16:19:40 +01:00
Andrea Mazzoleni
b8b1d38781 Speed up reading of content file disabling mutexes
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-03-11 16:09:09 +01:00
Andrea Mazzoleni
c8f219e6e8 Comment why read doesn't refersh the disks info 2026-03-11 16:05:39 +01:00
Andrea Mazzoleni
60c7b6baa3 New extra config option for additional disks to monitor 2026-03-11 16:05:39 +01:00
Andrea Mazzoleni
e48cdacce5 New option --gui-touch-before 2026-03-10 23:43:21 +01:00
Andrea Mazzoleni
df5b389afd Use more proper flags for the open() for flock()
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-03-09 23:31:42 +01:00
Andrea Mazzoleni
7ffd018bfd Revert the request of UAC privileges to be like version 13.0 2026-03-09 23:31:41 +01:00
Andrea Mazzoleni
b511ae8ad7 Add Windows resource
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-03-04 16:09:20 +01:00
Andrea Mazzoleni
4bc30e976a Gather access counters in Windows 2026-03-04 11:06:19 +01:00
Andrea Mazzoleni
75ef786e29 Report stats also for low devices
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-03-03 12:41:16 +01:00
Andrea Mazzoleni
27c44ce56e Quote tags in the logs
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-03-02 17:57:29 +01:00
Andrea Mazzoleni
7f7135dc1b Fix the interpretation of the return value of smartctl in Windows 2026-03-02 17:57:29 +01:00
Andrea Mazzoleni
b3879f7f8e Rework the portable support 2026-03-02 09:56:27 +01:00
Andrea Mazzoleni
016d50df34 Fix AFR computation 2026-03-01 11:20:29 +01:00
Andrea Mazzoleni
21561e6cf9 More coverage test
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-02-28 18:13:11 +01:00
Andrea Mazzoleni
748c086edb Normalize the sysattr() interface 2026-02-28 10:10:27 +01:00
Andrea Mazzoleni
ba18fdaf07 Avoid to use gcc extensions when allocating the fiemap
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-02-28 09:37:40 +01:00
Andrea Mazzoleni
2b1e356099 Always use the mutex when scanning disks 2026-02-28 09:18:20 +01:00
Andrea Mazzoleni
ee197c7920 Add comments to the inclusion/exclusion filter handling
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
2026-02-27 01:15:46 +01:00
Andrea Mazzoleni
d451f911c7 Reformat the code with new uncrustify.cfg 2026-02-27 00:39:22 +01:00
Andrea Mazzoleni
ed15ad23a4 Report more NVME SMART attributes 2026-02-26 12:53:55 +01:00
Andrea Mazzoleni
18279f7346 Stop parsing numbers from smartctl after two consecutive commas
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
2026-02-25 19:12:34 +01:00
Andrea Mazzoleni
1e79a19409 Fix potential crash during thermal spingdown 2026-02-25 19:04:45 +01:00
Andrea Mazzoleni
8639c8b479 Use PACKAGE_NAME where proper 2026-02-24 09:09:10 +01:00
Andrea Mazzoleni
077cf5de01 Detect more hardware errors 2026-02-24 08:39:50 +01:00
Andrea Mazzoleni
f5c07e07f5 Detect more SMART attributes for SCSI/NVME
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
2026-02-21 18:46:21 +01:00
Andrea Mazzoleni
a63a985bf7 Promote "test-read" to an official command as "read"
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
2026-02-20 00:03:07 +01:00
Andrea Mazzoleni
f86819cadc Do not log the attributes ignore with smartignore 2026-02-19 16:16:30 +01:00
Andrea Mazzoleni
575ce99b5f Use a 64 bit hash for the buckets, just to avoid conversion warnings
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-02-18 19:53:17 +01:00
Andrea Mazzoleni
7af0111c4a Fix leak on error when writing content file 2026-02-18 19:48:30 +01:00
Andrea Mazzoleni
11fd4ada69 Support decimal point for -p, --plan
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
2026-02-17 02:02:48 +01:00
Andrea Mazzoleni
696ee97754 Log full SMART attributes 2026-02-17 02:02:48 +01:00
Andrea Mazzoleni
5e98164b64 Log the real raw value of SMART temperature 2026-02-17 02:02:48 +01:00
Andrea Mazzoleni
a31bba2e45 Fix temperature gathering 2026-02-17 02:02:48 +01:00
Andrea Mazzoleni
2019aa4bb6 Log the normalized, worst and threshold value of SMART attributes 2026-02-17 02:02:48 +01:00
Andrea Mazzoleni
4c7fd01b7b Do not log the exit tag in scan, only in diff
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
2026-02-10 23:15:49 +01:00
Andrea Mazzoleni
627b7cff50 New gui options to have a better integration 2026-02-10 12:16:50 +01:00
Andrea Mazzoleni
5dfeaf0ef6 Return with an error code if the there is a thermal alert that prevent starting
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-02-09 23:52:10 +01:00
Andrea Mazzoleni
03fb7d3cff Log begin and end markers for scan and bucket listing 2026-02-09 23:52:10 +01:00
Andrea Mazzoleni
f89d5fa4f3 Unified the two --force-realloc logics 2026-02-09 14:39:19 +01:00
Ralf
966583e6f0 Add a new -W, --force-realloc-tail that operates only on the specified tail
Co-authored-by: Andrea Mazzoleni <amadvance@gmail.com>
2026-02-09 14:39:19 +01:00
Andrea Mazzoleni
d5b5a9bcbf More efficient info bucket management
Logged at every state_read() and state_write()
2026-02-09 14:39:19 +01:00