Commit graph

94 commits

Author SHA1 Message Date
Andrea Mazzoleni
c6980793a8 Removes a clang false positive warning. 2014-02-18 22:46:21 +01:00
Andrea Mazzoleni
c420391493 Detects copied files and reuse hash data. 2014-02-12 20:02:35 +01:00
Andrea Mazzoleni
3dadfb99e9 Keeps the fast sync mode as the default mode. 2014-02-10 20:53:47 +01:00
Andrea Mazzoleni
137a55b712 Fixes a not initialized variable. 2014-02-08 16:52:17 +01:00
Andrea Mazzoleni
43fd9daf23 Stops sync if pressing Ctrl+C in hashing. 2014-02-08 16:49:24 +01:00
Andrea Mazzoleni
ff6b4ff760 Increase a bit the test coverage. 2014-02-05 00:00:29 +01:00
Andrea Mazzoleni
24fd5ab318 Excludes handling of error condition from the coverage test. 2014-02-03 22:40:51 +01:00
Andrea Mazzoleni
a1dadcc374 Test the memory block used for hashing. 2014-02-03 19:05:22 +01:00
Andrea Mazzoleni
8fb9803b34 Changes sync to hash as a separate step. 2014-02-02 23:03:37 +01:00
Andrea Mazzoleni
ba1d6ed2b6 Merges NEW and CHG blocks and introduces REP blocks.
This is a preparation for using REP blocks for containing hashes
of new data.
2014-02-01 17:57:26 +01:00
Andrea Mazzoleni
e14966eef1 Uses a different handling of info and deleted blocks. 2014-02-01 17:24:19 +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
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
cae803bdfb Refactors vector operations. 2014-01-02 17:51:50 +01:00
Andrea Mazzoleni
305b52d32a Reverses the order of np/nd in raid_par() for consistency with other funcs. 2013-12-28 15:43:00 +01:00
Andrea Mazzoleni
abc05c612c Splits the RAID engine in multiple files. 2013-12-28 09:10:00 +01:00
Andrea Mazzoleni
de0c8db8d7 Refactors the RAID engine for a potential independent release. 2013-12-27 13:56:56 +01:00
Andrea Mazzoleni
9fa97f04fd Move the vbuf argument as last one. No functional change. 2013-12-26 09:28:00 +01:00
Andrea Mazzoleni
52eb4675d3 Fixes a crash if a file is deleted during a sync/scrub. 2013-12-03 18:40:19 +01:00
Andrea Mazzoleni
54f3af34cc Prints more details if a runtime file change is detected. 2013-11-14 21:12:48 +01:00
Andrea Mazzoleni
915c3b9202 Renames parity level from RAID to PAR. 2013-11-13 21:35:44 +01:00
Andrea Mazzoleni
6a3438f883 Reverse the order of disk buffers that are accessed in backward order.
This improves a little the speed.
2013-11-04 19:45:29 +01:00
Andrea Mazzoleni
d8689465a5 Updates some sync comments. 2013-11-01 08:38:13 +01:00
Andrea Mazzoleni
7414f8daec Adds a basic memory test on the used memory buffers. 2013-10-27 17:31:10 +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
136af37e96 Adds preliminary support for RAID based on a Cauchy matrix. 2013-10-22 23:40:05 +02:00
Andrea Mazzoleni
c95917ecfe Adds more logging in scrub and sync. 2013-10-21 21:56:53 +02:00
Andrea Mazzoleni
6c3d84d775 Merge branch 'b4'
Conflicts:
	HISTORY
	configure.ac
	state.c
	state.h
2013-10-21 19:52:28 +02:00
Andrea Mazzoleni
cef30125a2 Relax the check about small parity files, to allow to recover
after a failed sync before resizing the parity files.
2013-10-21 19:43:01 +02:00
Andrea Mazzoleni
1c07ed86f8 Changes the output format to make it more consistent between commands. 2013-10-19 13:24:35 +02:00
Andrea Mazzoleni
70244133f4 Changes the meaning of the -G, --gui option to now remove only
the interactive output. All the other log options are not enabled
by default.
2013-10-03 22:44:33 +02:00
Andrea Mazzoleni
7014486bb7 In sync if a silent error is detect marks the block as bad like in scrub. 2013-10-03 22:16:29 +02:00
Andrea Mazzoleni
d35beda689 Improves the -G, --gui output. 2013-09-30 22:24:30 +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
6868fae748 Merge branch 'b4'
Conflicts:
	sync.c
2013-09-21 19:15:25 +02:00
Andrea Mazzoleni
013306e325 Prints a more clear statement that Everything is OK at the end of commands. 2013-09-21 19:11:11 +02:00
Andrea Mazzoleni
b72f7bf9b3 Uses a for loop to handle parities. 2013-09-15 21:12:41 +02:00
Andrea Mazzoleni
142f6ce119 Implements full RAIDTP support. 2013-09-11 23:30:32 +02:00
Andrea Mazzoleni
4f891087a2 Optimizes the cache use for all the RAID computations. 2013-09-05 22:29:58 +02:00
Andrea Mazzoleni
fb5cc1c3b4 Doesn't remove anymore deleted blocks before sync.
They are going to be automatically excluded when we write the content file.
2013-08-23 18:45:34 +02:00
Andrea Mazzoleni
e0afd0edf7 Assumes also CHG blocks with a NULL hash without needing an info block.
Some refactoring and renaming of other hash functions to avoid misunderstanding.
2013-08-21 22:24:12 +02:00
Andrea Mazzoleni
cefe021e60 Doesn't start sync if Ctrl+C is pressed. 2013-07-10 19:37:58 +02:00
Andrea Mazzoleni
275ef2ed3c Implements an incremental rehash. 2013-07-01 23:08:25 +02:00
Andrea Mazzoleni
1ddb24da46 Groups all the startup options in the new snapraid_option struct. 2013-06-29 18:11:36 +02:00
Andrea Mazzoleni
a32a1cd9a8 Adds the new status and scrub commands. 2013-06-29 17:53:40 +02:00
Andrea Mazzoleni
e0164b29d1 Keeps track of the last sync time of each block. 2013-06-23 22:54:54 +02:00
Andrea Mazzoleni
4455ba7e4f Adds a random hash seed. 2013-06-16 00:33:46 +02:00
Andrea Mazzoleni
caa7b5d054 When Data error are detected prints the full path of the file. 2013-04-28 17:51:35 +02:00
Andrea Mazzoleni
aeb167bb16 Adds --test-skip-sequential to disable the sequential hint for the disk cache. 2013-04-04 22:52:56 +02:00