Commit graph

1815 commits

Author SHA1 Message Date
Andrea Mazzoleni
85ca997bf2 Fix integer overflow when computing the progress percentage 2024-01-03 20:20:39 +01:00
Andrea Mazzoleni
a3270063dd Review the manpage 2023-12-09 15:48:34 +01:00
Andrea Mazzoleni
a605442c8c Fix typos in messages 2023-12-09 15:35:45 +01:00
Andrea Mazzoleni
607564c5fe Fix some typos 2023-12-09 10:45:26 +01:00
saladpanda
978d812153
Fix error when configuring a contentfile in / (#18)
When using this config line:
content /snapraid.content
SnapRAID throws this error:
Error accessing 'content' dir '' specification in '/etc/snapraid.conf' at line 17

This commit fixes that by not replacing the rightmost slash with NUL but
instead the char immediately after the slash.
2023-10-20 10:24:54 +02:00
Benjamin Sherman
aa04edeccc Add rpm specfile 2023-08-09 14:49:06 +02:00
Jens Kühnel
6b3ac2a6cb Update address of FSF in GPLv2 2023-08-09 14:44:48 +02:00
Andrea Mazzoleni
0dc5904d5d Use dd instead of head to be compatible with OpenBSD 2023-06-26 19:16:48 +02:00
Andrea Mazzoleni
0142c51922 Update TODO 2023-06-04 15:37:14 +02:00
Andrea Mazzoleni
9bc570eeb3 Remove travis 2023-03-08 21:39:13 +01:00
Andrea Mazzoleni
0d6792d4ed Clearify a scrub message 2022-12-05 12:13:40 +01:00
Andrea Mazzoleni
935d7cd09f Fix typo in man 2022-11-28 07:39:31 +01:00
Andrea Mazzoleni
b424a503a0 Add checksums for v12.2 2022-08-20 17:43:11 +02:00
Andrea Mazzoleni
986e16b4e8 Fix build issue with GLIBC 2.36
The sys/mount.h and linux/mount.h (included by linux/fs.h) are incompatible
in glibc 2.36 as both declare fsconfig_command.
Anyway, sys/mount.h is needed only in darwin for statfs and we can avoid to
include it in linux.
2022-08-17 17:50:40 +02:00
Andrea Mazzoleni
3ab8b43907 Fix build errors with new mingw compiler 2022-07-21 15:24:21 +02:00
Andrea Gelmini
2dacb15516 Fix typos
Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2022-07-21 14:48:48 +02:00
Andrea Mazzoleni
7b92788d19 Update .gitignore 2022-06-29 16:03:31 +02:00
Andrea Mazzoleni
2fe1f46752 Support file time before 1970 2022-02-18 07:11:46 +01:00
Andrea Mazzoleni
bcb0ab27a0 Add checksums for v12.1 2022-01-24 17:52:57 +01:00
Andrea Mazzoleni
eb19c79039 Increase default disk cache to 16 MiB 2022-01-09 17:46:10 +01:00
Andrea Mazzoleni
02d170c004 Remove all scan buffers from the stack
This reduces even more the stack utilization.
2022-01-09 10:23:09 +01:00
Andrea Mazzoleni
b9721747c5 Reduce stack allocation in dir scanning
This allow to work in environments with low stack size, like MUSL that has only 128K.
2022-01-09 09:06:18 +01:00
Andrea Mazzoleni
96cff859ce Remove unnecessary #if 2022-01-07 21:53:12 +01:00
Andrea Mazzoleni
1d4fbd3f9a Add the option --test-skip-multi-scan to skip multithreads scan 2022-01-07 21:03:51 +01:00
Andrea Mazzoleni
7948d3d3de Disable annoying warning from gcc 10 2021-12-08 15:48:25 +01:00
Andrea Mazzoleni
9c9b34ddc3 Add checksums for v12.0 2021-12-08 09:43:20 +01:00
Andrea Mazzoleni
bc2d8ee6a5 Use proper locking when printing diff lines in Windows
Windows requires a lock to avoid to mixup lines.
2021-12-01 18:00:07 +01:00
Andrea Mazzoleni
2c3f9b8364 Remove outdated comment 2021-11-29 17:42:52 +01:00
Andrea Mazzoleni
31699b1b2c Print only one Verifying message
There is no point to print them all at the same time.
2021-11-29 17:40:40 +01:00
Andrea Mazzoleni
b0f85b54b1 Remove warning when built without thread support 2021-11-29 17:31:52 +01:00
Andrea Mazzoleni
3478a95add Print time for scanning 2021-11-29 16:51:11 +01:00
Andrea Mazzoleni
f31395dffb Add support for parallel disk scanning 2021-11-28 16:20:00 +01:00
Andrea Mazzoleni
1eb47b2ffd Add checksums for v11.6 2021-09-27 22:06:59 +02:00
Andrea Mazzoleni
d231bb8ae8 Update HISTORY 2021-09-27 21:45:08 +02:00
Andrea Mazzoleni
836fd6b1e0 Add a new undocumented --filter-block-error option 2021-07-08 08:07:03 +02:00
Andrea Mazzoleni
6e717a8239 Updated HISTORY 2021-06-24 07:40:34 +02:00
Andrea Mazzoleni
e1d24b2f86 Create codeql-analysis.yml 2021-05-30 15:56:07 +02:00
Andrea Mazzoleni
24f746bf82 Use localtime_r() when available
No effect on the monothread context, but avoid warnings from static analysis.
2021-05-30 15:52:55 +02:00
Andrea Mazzoleni
4653dde7c5 Fixed false positive warnings from static analysis
The number of buffer and the hash size are always a small number. It never reash the 4 GB limit.
2021-05-30 15:50:13 +02:00
Andrea Mazzoleni
bbfb3415dc Enable check on github actions 2021-05-28 07:24:39 +02:00
Andrea Mazzoleni
65d404fd5f Preliminary github actions support 2021-05-28 07:10:43 +02:00
Andrea Mazzoleni
d65acee664 Preliminary circleci support 2021-05-27 21:29:43 +02: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
7ce88e5f18 Remove unncessary assignment 2021-05-25 13:32:26 +02:00
Andrea Mazzoleni
ec7c4de3c9 Fix check for division by 0 2021-05-24 19:47:05 +02:00
Andrea Mazzoleni
b609df78b5 Add overflow checking on the interger parsing 2021-05-24 19:43:53 +02:00
Andrea Mazzoleni
77005ff2db Update coverity 2021-05-24 19:43:27 +02:00
Andrea Mazzoleni
7654ed45f1 In fix/check with the -e option process the whole files with bad blocks 2021-05-22 22:28:19 +02:00
Andrea Mazzoleni
d5d10abcda Do not postprocess files in excluded blocks
The filtering is by files, so the last block is included.
The only exception is with an explicit end block, but in such case,
like when fixing bad blocks the post processing is not expected.
2021-05-22 22:00:07 +02:00
Andrea Mazzoleni
2a5b5499c4 Avoid to recompute the block status multiple times
Store it in a bit vector and reuse the result.
2021-05-22 11:37:36 +02:00