Commit graph

1869 commits

Author SHA1 Message Date
Andrea Mazzoleni
47c164154d Update manual 2025-10-16 17:42:29 +02:00
Andrea Mazzoleni
adce4ce5f7 Use /proc/self/exe to restart itself 2025-10-16 16:13:13 +02:00
Andrea Mazzoleni
f7798b2357 Update performance test of raid.c
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 / Analyze (push) Has been cancelled
2025-10-14 23:26:34 +02:00
Andrea Mazzoleni
13a4872e69 Revise the top comment of raid.c
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 / Analyze (push) Has been cancelled
2025-10-13 17:32:55 +02:00
Andrea Mazzoleni
52ef48655f Improve and change the order of the user messages
The "Everything is OK" is now printed as latest one.
2025-10-13 13:51:18 +02:00
Andrea Mazzoleni
467fb8c1ac Don't print the "Nothing to do" if the state was updated
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 / Analyze (push) Waiting to run
2025-10-13 00:26:31 +02:00
Andrea Mazzoleni
c1e101699a Avoid stale messages on terminal to appear in new lines 2025-10-12 23:55:32 +02:00
Andrea Mazzoleni
1aa1455ea0 Update manual
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 / Analyze (push) Waiting to run
2025-10-12 19:17:32 +02:00
Andrea Mazzoleni
adde997a38 Extend block time information to 64 bits
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 / Analyze (push) Has been cancelled
Prevent potential timestamp overflow for the last write operation, which
could occur around 2106. The content format remains unchanged, as values are
expected to stay within the 32-bit range until then.
2025-10-08 13:02:24 +02:00
Andrea Mazzoleni
a2dd9a5f1c Fix leak on error in the new devup 2025-10-08 00:17:01 +02:00
Andrea Mazzoleni
bf7b341310 Update rpm.spec 2025-10-06 17:09:47 +02:00
Andrea Mazzoleni
b98b37dac9 Update TODO
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 / Analyze (push) Has been cancelled
2025-10-06 17:07:03 +02:00
Andrea Mazzoleni
dade6d809a Update HISTORY 2025-10-06 17:02:10 +02:00
Andrea Mazzoleni
4037fdd735 More manual improvments 2025-10-06 15:43:51 +02:00
Andrea Mazzoleni
739c50ca1a New coverity 2025-10-06 15:33:32 +02:00
Andrea Mazzoleni
b03ad0dfa0 Correct the syntax and grammar of the manual
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 / Analyze (push) Has been cancelled
2025-10-04 14:40:39 +02:00
Andrea Mazzoleni
649b3f1f0b Remove the SMART attribute 193 from the failure probability computation
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 / Analyze (push) Has been cancelled
2025-09-29 16:25:49 +02:00
Andrea Mazzoleni
93804c20c3 Add a new -A, --stats option 2025-09-29 15:53:43 +02:00
Andrea Mazzoleni
c3d34734ae Spinup Windows disk with direct access at low level 2025-09-29 14:42:15 +02:00
Andrea Mazzoleni
be41b8dbd5 Faster makedist 2025-09-29 14:36:33 +02:00
Andrea Mazzoleni
47c0f3b8ae Before spinning down flush all the disk caches 2025-09-27 19:40:32 +02:00
Andrea Mazzoleni
906d215bf5 Add thermal protection options: temp_limit and temp_sleep
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 / Analyze (push) Has been cancelled
Introduce two new configuration directives to protect disks from overheating:

- temp_limit <TEMPERATURE_CELSIUS>
  Sets the maximum allowed disk temperature. When any disk exceeds this limit,
  SnapRAID stops all operations and spins down the disks.

- temp_sleep <TIME_IN_MINUTES>
  Specifies how long disks remain in standby after a temperature event.
  Defaults to 15 minutes.

These options allow SnapRAID to automatically pause activity and cool down
disks when a temperature threshold is reached, improving data safety and
hardware longevity.
2025-09-27 16:05:05 +02:00
Andrea Mazzoleni
b5bbece95e Update HISTORY
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 / Analyze (push) Waiting to run
2025-09-26 10:04:33 +02:00
Andrea Mazzoleni
bb2b84d21a Add a new -s, --spin-down-on-error option
Also handle correctly chars outside the Windows codepage as arguments.
2025-09-26 09:50:10 +02:00
Andrea Mazzoleni
30474cfb80 Ensure that writer buffers are flushed before synchronizing parity writes
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 / Analyze (push) Waiting to run
2025-09-25 15:32:34 +02:00
Andrea Mazzoleni
5fd41d215b Intercept Ctrl-C at startup of all 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 / Analyze (push) Has been cancelled
2025-09-24 11:32:10 +02:00
Andrea Mazzoleni
fedeb99bdc Add a new probe command
Probe the power state of the disks in the system
2025-09-24 11:26:30 +02:00
Andrea Mazzoleni
e57f07cc24 Use direct read access to spinup disks
This is more reliable in case of multiple physical devices mapped to the same
logical disk.
2025-09-24 11:15:26 +02:00
Andrea Mazzoleni
15826c2e3b More compressed printing of bad blocks listing
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 / Analyze (push) Has been cancelled
2025-09-17 18:37:02 +02:00
Andrea Mazzoleni
035b3b42d0 Reformat manpage
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 / Analyze (push) Has been cancelled
2025-09-15 23:48:53 +02:00
Andrea Mazzoleni
8cef686d26 Adds a new smartignore option to ignore specific SMART attributes
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 / Analyze (push) Waiting to run
2025-09-15 16:57:22 +02:00
Zelin2001
4c504ab325
Make the test phase dash compatible (#26)
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 / Analyze (push) Has been cancelled
In Makefile.am test phase substitutes
`[[`` with POSIX shell `test`` command.
2025-08-20 18:27:33 +02:00
Andrea Mazzoleni
09897fcdb3 Extend autover to work also without git tags 2025-05-15 22:12:20 +02:00
Andrea Mazzoleni
5ebf6ab186 Keep data in the page cache during the build tests 2025-05-08 09:46:38 +02:00
Andrea Mazzoleni
ad579dcef6 Modernize fnmatch implementation to avoid warnings with new compilers 2025-05-08 09:32:06 +02:00
Andrea Mazzoleni
5ad7f9acfc Use POSIX_FADV_NOREUSE to avoid page-cache pollution
This adds support for POSIX_FADV_NOREUSE, which advises the kernel not to
cache read data. It's available starting from Linux kernel 6.3.
To maintain compatibility with older kernels, POSIX_FADV_DONTNEED is still
used.
2025-05-08 09:18:50 +02:00
Andrea Mazzoleni
f38b5a84a8 Use fetch_add because the wait is before the operation 2025-03-30 18:51:47 +02:00
Allan Clark
5886923bb1 Add bandwidth limit feature --bw-limit 2025-03-29 19:29:55 +01:00
Andrea Mazzoleni
15a5fac6e9 Switch to SDE64 2025-03-29 16:51:26 +01:00
Andrea Mazzoleni
389b9aa2cb Remove the obsolete AC_HEADER_TIME from configure.ac 2025-03-13 15:56:18 +01:00
Nasado
3c87474aa2 Use volume UUIDs on macOS 2025-02-13 11:21:26 +01:00
acloserview
35ab0ba542
Update snapraid-rpm.spec (#24)
Updated 'Version' to '12.4'
2025-02-06 21:57:05 +01:00
Andrea Mazzoleni
e4e733c147 Add checksums for version 12.4 2025-01-23 21:05:38 +01:00
Andrea Mazzoleni
d7e78e9141 Switch to wine64 for testing 2025-01-23 20:32:26 +01:00
Andrea Mazzoleni
56c4076e23 Avoid a warning about function pointer conversion. No functional changes 2025-01-23 15:51:59 +01:00
Mario Campos
e6b8c4c8a0
Upgrade Actions in CodeQL analysis workflow (#22)
This brings the actions to the latest major version (v2 -> v4, v1 -> v3). And, in the cases of the CodeQL actions, I'm pretty sure v1 has been deprecated.
2024-08-21 09:34:03 +02:00
Andrea Mazzoleni
c2664c6521 Update TODO 2024-07-03 17:24:31 +02:00
Andrea Mazzoleni
93f424768b Remove unused variable 2024-06-05 10:14:50 +02:00
Andrea Mazzoleni
41688c3036 Update TODO 2024-06-05 09:45:42 +02:00
Andrea Mazzoleni
cd327c60c7 Add checksums for v12.3 2024-01-22 22:04:24 +01:00