Commit graph

131 commits

Author SHA1 Message Date
Andrea Mazzoleni
c6a3742b40 Adds the new -F, --force-full option to force a full sync. 2014-06-15 19:01:07 +02:00
Andrea Mazzoleni
05d5fc7e3f Adds two extra tests about aborted syncs with files operations. 2014-06-15 18:00:00 +02:00
Andrea Mazzoleni
de86307a27 Uses a smarter copy detection to avoid false positive.
Now a if the file has a zero nanosecond timestamp, it must
match the full pathname.
Also add the new -N option and an new undocumented test-nano
command to set randomly the nanosecond timestamp of files
that have it at zero.
2014-05-15 23:45:51 +02:00
Andrea Mazzoleni
8c78b4b4a9 Avoids to test permission when run as root. 2014-05-11 17:37:08 +02:00
Andrea Mazzoleni
0d231038ff Extends the sync regression test to cover error conditions. 2014-04-07 23:12:40 +02:00
Andrea Mazzoleni
e226040ce2 Fixes the regression test making it less strict.
Creating files with at the same time, with the same name and same
size but different content may trigger the SnapRAID check about
bad data. This happens in Mac OS X that likely has a not so precise
timestamp, with files created at the same time, even if using
nanosecond precision.
2014-04-02 21:46:23 +02:00
Andrea Mazzoleni
44ef039a13 Different source organization. 2014-03-23 17:50:27 +01:00
Andrea Mazzoleni
1b4bd48e36 Adjusts coverage for new src dir. 2014-03-23 11:11:43 +01:00
Andrea Mazzoleni
a7bc628bc3 Moves the source files into the src/ dir. 2014-03-22 21:02:12 +01:00
Andrea Mazzoleni
ec9cdeac61 Handles failing tests in valgrind. 2014-03-22 11:43:43 +01:00
Andrea Mazzoleni
ba0c979c11 More coverage test. 2014-03-20 22:10:19 +01:00
Andrea Mazzoleni
7da71a39d3 A lot of more logging when a recovering fails. 2014-03-18 21:04:25 +01:00
Andrea Mazzoleni
1222084581 Ignores and cleans gcov files. 2014-03-17 22:08:04 +01:00
Andrea Mazzoleni
5383f00b5f Renames dry to test-dry. 2014-03-10 19:09:05 +01:00
Andrea Mazzoleni
50077ddfa6 Minor updates to autoconf stuffs. 2014-03-06 18:53:44 +01:00
Andrea Mazzoleni
cb0a280ddc Adds date and time specifier for the log file name. 2014-02-16 10:03:02 +01:00
Andrea Mazzoleni
857c8eba63 Converts prehash to be a command line option. 2014-02-12 22:04:14 +01:00
Andrea Mazzoleni
3dadfb99e9 Keeps the fast sync mode as the default mode. 2014-02-10 20:53:47 +01:00
Andrea Mazzoleni
ff6b4ff760 Increase a bit the test coverage. 2014-02-05 00:00:29 +01:00
Andrea Mazzoleni
8fb9803b34 Changes sync to hash as a separate step. 2014-02-02 23:03:37 +01:00
Andrea Mazzoleni
81f2fde927 Adds new test program for the RAID engine. 2014-01-18 10:37:09 +01:00
Andrea Mazzoleni
91c3de2182 Refactors the regression test. 2014-01-15 19:57:02 +01:00
Andrea Mazzoleni
0f6867ba4e In sync fixes silent error to compute the new parity. 2014-01-14 22:10:47 +01:00
Andrea Mazzoleni
e1e843c588 Differentiates the test for normal file change or silent error damage. 2014-01-14 18:47:00 +01:00
Andrea Mazzoleni
554055e53d Adds a new helper file for raid_sort and raid_insert. 2014-01-10 09:02:12 +01:00
Andrea Mazzoleni
00a05a80e5 Changes the argument format of raid_rec() and renames raid_par() to raid_gen(). 2014-01-08 17:07:13 +01:00
Andrea Mazzoleni
03482b84a6 Moves RAID tests in the raid/ dir. 2013-12-29 22:13:08 +01:00
Andrea Mazzoleni
b7a8858233 Adds a new sort functions for RAID. 2013-12-28 17:07:00 +01:00
Andrea Mazzoleni
abc05c612c Splits the RAID engine in multiple files. 2013-12-28 09:10:00 +01:00
Andrea Mazzoleni
a64e24d503 Fixes the gen-conf command. 2013-11-26 18:43:12 +01:00
Andrea Mazzoleni
22b3ca77b3 Changes configuration to use numbers to specify the parity level instead than letters. 2013-11-17 14:12:57 +01:00
Andrea Mazzoleni
915c3b9202 Renames parity level from RAID to PAR. 2013-11-13 21:35:44 +01:00
Andrea Mazzoleni
a5a3c33854 Adds support for fast triple parity without SSSE3. 2013-11-04 23:47:49 +01:00
Andrea Mazzoleni
877d781204 More testing. 2013-11-01 12:33:12 +01:00
Andrea Mazzoleni
066709370e Changes again the output of check/fix.
Now the file name are printed unless the undocumented -q is specified.
2013-10-31 18:41:10 +01:00
Andrea Mazzoleni
15d9bb4db2 Removes too verbose printing in check/fix. 2013-10-30 22:59:33 +01:00
Andrea Mazzoleni
fae56fd9af Generates combinations at runtime. 2013-10-29 22:22:40 +01:00
Andrea Mazzoleni
a92f4264df Removes the unused tommyarrayof. 2013-10-28 23:22:10 +01:00
Andrea Mazzoleni
5b60bd077d Minor comments and output changes. 2013-10-27 21:05:18 +01:00
Andrea Mazzoleni
9a5978eb22 Adds complete Cauchy RAID support and removes the mixed Power RAID. 2013-10-25 18:03:05 +02:00
Andrea Mazzoleni
df717723ac Less verbose output in check. 2013-10-06 17:44:42 +02:00
Andrea Mazzoleni
1b46d03d70 Adds preliminary list command. 2013-10-04 21:35:08 +02:00
Andrea Mazzoleni
1582dba2c5 Doesn't update parity for blocks that are not changed even if the file has a different timestamp. 2013-09-29 21:01:31 +02:00
Andrea Mazzoleni
d525b4a14a Reduces memory usage, with new array growing by fixed size and not exponential. 2013-09-28 09:40:08 +02:00
Andrea Mazzoleni
6c8d08b93e Adds missing files at the archive. 2013-09-21 17:35:54 +02:00
Andrea Mazzoleni
2e4f3ef629 Adds regression test for RAIDQP. 2013-09-20 22:06:21 +02:00
Andrea Mazzoleni
28297c52d9 Merge branch 'master' into tripleparity
Conflicts:
	Makefile.am
	check.c
	dry.c
	scrub.c
	state.c
2013-09-16 20:34:53 +02:00
Andrea Mazzoleni
3b6dfd9ffe Fixes the -G option and adds test for it. 2013-09-16 18:52:10 +02:00
Andrea Mazzoleni
f61fcfd850 Merge branch 'master' into tripleparity
Conflicts:
	Makefile.am
	state.c
2013-09-15 21:23:15 +02:00
Andrea Mazzoleni
142f6ce119 Implements full RAIDTP support. 2013-09-11 23:30:32 +02:00