Andrea Mazzoleni
185df4bd2e
Do not expose Windows threads keys
2026-08-18 23:33:53 +02:00
Andrea Mazzoleni
493e0118f3
Portability
2026-08-18 23:33:53 +02:00
Andrea Mazzoleni
38f78154f9
Add Windows support for symlink of directories
2026-08-18 23:33:53 +02:00
Andrea Mazzoleni
e4aa186b1a
Fix touching of files that in Windows have the read-only attribute set
2026-06-10 10:41:11 +02:00
Andrea Mazzoleni
96e20b3912
Switch esc_tag and path formatting to a contiguous thread-local circular pool to eliminate stack bloat
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-05-29 11:22:04 +02:00
Andrea Mazzoleni
0d0431a907
Simpler Copyright string
2026-04-09 17:56:49 +02:00
Christoph Hellwig
60269a1236
Use SPDX ( https://spdx.dev/ ) tags to identify the license used for each
...
file, and a COPYING file explaining the licensing scheme, with the actual
licenses listed in the LICENSES/ directory.
2026-04-02 16:01:37 +02:00
Andrea Mazzoleni
b3879f7f8e
Rework the portable support
2026-03-02 09:56:27 +01:00
Andrea Mazzoleni
d451f911c7
Reformat the code with new uncrustify.cfg
2026-02-27 00:39:22 +01:00
Andrea Mazzoleni
21acc31bf1
Beautify code with uncrustify
2025-10-26 18:11:45 +01:00
Andrea Mazzoleni
b549bffd4c
Flush disks before the emergency spindown
2025-10-26 10:38:43 +01:00
Andrea Mazzoleni
906d215bf5
Add thermal protection options: temp_limit and temp_sleep
...
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
Allan Clark
5886923bb1
Add bandwidth limit feature --bw-limit
2025-03-29 19:29:55 +01:00
Andrea Mazzoleni
53801b407a
Remove the need of the MingW pthread layer on the Windows port
...
Now everything is implemented usign Windows native calls.
2021-05-26 00:21:52 +02:00
Andrea Mazzoleni
f778fb691f
Apply new hardlink behaviour also to NTFS in nix platforms
...
This is a specific NTFS behaviour, not limited to Windows.
2017-10-29 18:43:53 +01:00
Andrea Mazzoleni
61a1e7a7e6
Use casting when printing value that may be of a different type
...
The stat struct could use whatever type for st_* fields.
2017-10-27 22:54:42 +02:00
Andrea Mazzoleni
17bec43be2
Set time of pool links
...
This avoid index refresh from various applications.
2017-05-01 16:07:04 +02:00
Andrea Mazzoleni
21241c5078
Preliminary advise support
2016-05-15 14:50:59 +02:00
Andrea Mazzoleni
2bebc5d953
Add fallocate in Windows and comment about its use
2016-05-15 14:27:35 +02:00
Andrea Mazzoleni
86eaf8190f
Use the native Windows thread support instead of pthread
2016-02-13 16:05:16 +01:00
Andrea Mazzoleni
18cc80bd7e
Now pread and pwrite use is required for multithread
...
We need to support concurrent access at the same file handle
from multiple threads, and they cannot share the same file pointer.
2016-01-09 10:25:56 +01:00
Andrea Mazzoleni
5249f9cb04
Fix various typos in comments
2016-01-02 16:52:20 +01:00
Andrea Mazzoleni
162d049bb9
Clearify some comments for Windows filesystem
2015-02-13 18:50:52 +01:00
Andrea Mazzoleni
297d648675
Removes the unnecessary windows_randomize declaration.
2015-01-02 18:07:59 +01:00
Andrea Mazzoleni
8c98864395
Uses the OS random support instead of rand().
2014-12-27 11:56:55 +01:00
Andrea Mazzoleni
7d6c30333f
Uses a more precise intructions set detection.
...
This allows to build with old assembler programs.
2014-11-12 19:52:35 +01:00
Andrea Mazzoleni
55006d76f3
Merges lstat_sync() and filephy() in Windows reduce syscalls.
2014-10-14 22:47:21 +02:00
Andrea Mazzoleni
ca5e635aa1
In Windows ensures to use synced information for new files.
...
Keeps track of the sync state of info with a new st_sync field
in the stat struct.
2014-10-04 10:27:23 +02:00
Andrea Mazzoleni
c513af08ff
Ensures to call lstat_ex() only on regular files.
2014-10-01 21:44:35 +02:00
Andrea Mazzoleni
f117074004
Uses Windows dir stream to make dir listing faster.
2014-09-30 21:54:49 +02:00
Andrea Mazzoleni
0433033c12
Uses an explicit fsync() in Windows.
...
This should allow a more precise error detection.
2014-09-24 22:25:35 +02:00
Andrea Mazzoleni
44ef039a13
Different source organization.
2014-03-23 17:50:27 +01:00