Andrea Mazzoleni
fa0a77f84c
Add missing esc_tag() in status and parity split log tags
2026-08-18 23:33:58 +02:00
Andrea Mazzoleni
00b4cbafd0
Merge the CLI and Daemon portable interface
2026-08-18 23:33:55 +02:00
Andrea Mazzoleni
f40b2decdb
Further conversions from 32 to 64 bits
2026-08-18 23:33:54 +02:00
Andrea Mazzoleni
bbd3c23cd2
Migrate block_off_t to 64-bit with updated CLI parsing, VLQ serialization, and format specifiers
2026-08-18 23:33:54 +02:00
Andrea Mazzoleni
275063d23c
Track deallocated files in the content file for parity recovery
...
Add a new 'dealloc' list per disk to record files that were removed
or modified during a scan. This list is saved in the content file
(new format version SNAPCNT4) so that past parity contributions of
those files can be imported from previous snapshots.
2026-08-18 23:33:52 +02:00
Andrea Mazzoleni
54602422dd
Change commenting style
2026-08-18 23:33:52 +02:00
Andrea Mazzoleni
212a0ce6d1
Avoid to use log_fatal() for a not fatal condition
2026-05-21 16:08:03 +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
d5b5a9bcbf
More efficient info bucket management
...
Logged at every state_read() and state_write()
2026-02-09 14:39:19 +01:00
Andrea Mazzoleni
025816d151
Speed up the status command
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-02 18:00:14 +01:00
Andrea Mazzoleni
60bd71d184
Log new block_unsynced and block_unscrubbed counter
2026-02-02 18:00:14 +01:00
Andrea Mazzoleni
d3f7bf64c1
Differentiate messages in the log files if they are caused by an hardware issue
2026-02-01 20:44:36 +01:00
Andrea Mazzoleni
a7e9cdd8c6
Log the exit summary of the status command
2026-01-16 00:28:12 +01:00
Andrea Mazzoleni
6b79b3157d
Splitted the --gui option in --gui and --gui-verbose to avoid extremely big logs
2026-01-14 10:49:23 +01:00
Andrea Mazzoleni
04732d8f49
Rework the latest log_tag additions
2025-12-10 13:59:14 +01:00
Tristan Teufel
43119c9caf
Add structured log output for status command to enable ASCII-free parsing ( #29 )
...
Add structured log output for status command to enable ASCII-free parsing
2025-12-10 13:50:43 +01:00
Andrea Mazzoleni
15826c2e3b
More compressed printing of bad blocks listing
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
Tomas Uribe
79e8794ff5
Small doc updates, clarify references to "snapraid touch". ( #19 )
...
Co-authored-by: Andrea Mazzoleni <amadvance@gmail.com>
2024-01-10 14:17:00 +01:00
Andrea Mazzoleni
85ca997bf2
Fix integer overflow when computing the progress percentage
2024-01-03 20:20:39 +01:00
Andrea Mazzoleni
f8d86abf4f
Automatically fix any scrub date that is in the future
2018-09-25 22:19:39 +02:00
Andrea Mazzoleni
9d3773a2d4
Rename the 'nano' command to 'touch'
2016-01-18 19:41:04 +01:00
Andrea Mazzoleni
3e30cfc3f2
Better nano message in 'status'
2016-01-18 19:23:37 +01:00
Andrea Mazzoleni
d2991f736c
Function renaming to get better consistency
2016-01-16 14:30:08 +01:00
Andrea Mazzoleni
74fa6e9274
Add the "maybe" function also to par2block
2016-01-15 20:36:20 +01:00
Andrea Mazzoleni
6ac01901b0
In 'status' print the number of files with zero subsecond timestamp
2016-01-11 21:56:19 +01:00
Andrea Mazzoleni
04e3a7f719
Fix the latest column of the status graph
...
The convertion from info to time was not necessary, as the value
is already a time. It was clearing the TIME_NEW bit, not showing
corretly the latest column in the graph.
2015-11-13 21:47:13 +01:00
Andrea Mazzoleni
cba363e898
Fix a wrong logic increment in status report
2015-11-13 21:07:30 +01:00
Andrea Mazzoleni
4030b18d40
Show differently scrubbed and new blocks in the graph
2015-11-10 21:27:56 +01:00
Andrea Mazzoleni
4b5c27900f
Change the status message for the not scrubbed percentage
2015-11-10 19:51:38 +01:00
Andrea Mazzoleni
fb759fec84
Rename some shadow variables
...
This removes some warnings in gcc 4.6 version.
2015-10-08 22:33:41 +02:00
Andrea Mazzoleni
0407c945db
Change the interface for parity allocation
...
This will allow a more compact representation
of the parity allocation
2015-10-01 23:24:06 +02:00
Andrea Mazzoleni
cca2cbb23f
Scrub first the just synced blocks
2015-08-27 18:58:25 +02:00
Andrea Mazzoleni
77117b1cd5
Add some more warning checks, and fix the ones reported
2015-08-05 09:42:11 +02:00
Andrea Mazzoleni
6a19a3d3e2
Fix a typo in the status command
2015-06-11 19:16:50 +02:00
Andrea Mazzoleni
de0c437bd2
Put a clear separation between log and msg functions
2015-04-20 22:07:42 +02:00
Andrea Mazzoleni
966abd6f16
Don't print free space in "status" if the info is not available
2015-04-20 20:57:10 +02:00
Andrea Mazzoleni
fb46313666
Use a simpler method to print disk space
2015-03-29 22:23:24 +02:00
Andrea Mazzoleni
3a4ce0b1e2
Use GB instead of GiB to be more consistent with HD size.
2015-03-29 22:18:21 +02:00
Andrea Mazzoleni
76cb3d5b88
Fix printing of wasted space in "status" command
2015-03-01 19:20:03 +01:00
Andrea Mazzoleni
e56de653da
Introduce a new messaging system
2015-02-22 14:31:03 +01:00
Andrea Mazzoleni
8f2b148ff1
Extend the "Wasted" column to show space still to waste
2015-02-12 21:03:38 +01:00
Andrea Mazzoleni
798de7ca99
Change the flush logic for streams
...
Now stdout and stderr are always line buffered, and stdlog only
flushed on request.
2015-02-03 18:29:11 +01:00
Andrea Mazzoleni
b5ce575981
Change the log and output handling
...
Now the log file contains all the errors messages,
and all the tag lines.
2015-02-02 23:39:46 +01:00
Andrea Mazzoleni
ad57aafd8f
Refactor the parity size detection before sync.
...
Now we resize the parity only after checking the size of all
the parity file.
2015-02-01 18:48:50 +01:00
Andrea Mazzoleni
6844fb7527
Print only the first 100 error to avoid to clutter the output
2015-01-31 17:05:31 +01:00
Andrea Mazzoleni
4a41adc807
Add preliminary SMART support with a new "smart" command.
2015-01-14 22:29:20 +01:00
Andrea Mazzoleni
49a66da494
Removes the "silent" error specification as now also input/output errors are possible.
2015-01-06 22:55:40 +01:00
Andrea Mazzoleni
ffe7f6fa57
Adds new files support.c/h for low level support functions.
2015-01-02 18:52:04 +01:00
Andrea Mazzoleni
0c539a0b35
Handles better upgrading in the status command.
2014-11-09 22:24:20 +01:00