Commit graph

72 commits

Author SHA1 Message Date
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
Andrea Mazzoleni
0200a2b7fa Adds a new -l, --log option. 2013-03-01 20:13:56 +01:00
Andrea Mazzoleni
4c058d25e2 Adds some more undocumented --test options. 2013-02-28 23:06:42 +01:00
Andrea Mazzoleni
1e3e88d51c Removes INV blocks. There are not unnecessary as we always keep deleted/changed ones to keep the information that the parity is invalid. 2013-02-24 19:43:53 +01:00
Andrea Mazzoleni
5c4f6dc5c4 Keeps track of the hash of deleted blocks.
This will allow an easier recovering providing manually deleted files.
2013-02-24 19:02:53 +01:00
Andrea Mazzoleni
65c6455f22 Fixed pritntf specifier for Windows. 2012-11-12 23:20:34 +01:00
Andrea Mazzoleni
91e74e91b8 Checks the parity size in sync. 2012-10-09 23:02:46 +02:00
Andrea Mazzoleni
7c9bf5f5f2 When printing inodes ensure to use 64 bits conversion in case inode is 32 bit. 2012-10-08 19:20:03 +02:00
Andrea Mazzoleni
8373233f25 Prints list of files outside the parity if growing is not possible. 2012-10-06 13:17:21 +02:00
Andrea Mazzoleni
3c598b28cc Compiles with optional nanoseconds supports. 2012-09-19 21:52:15 +02:00
Andrea Mazzoleni
179195435b Avoid autosave if near at the end. 2012-07-21 13:52:22 +02:00
Andrea Mazzoleni
71c7f4dffb More precise file modification time, now using nanoseconds. 2012-07-10 23:24:31 +02:00
Andrea Mazzoleni
7ee0c0f5ef If no file is present, prints a message about nothing to do. 2012-06-30 17:29:16 +02:00
Andrea Mazzoleni
09242f1cec Fixes a typo, and new TODO entry. 2012-03-18 10:25:53 +01:00
Andrea Mazzoleni
2a50ec747d Adds the new autosave configuration option.
Checks the parity validity invariant after reading the content file.
2012-03-13 23:59:59 +01:00
Andrea Mazzoleni
afb77784bf Changes the opening parity message. 2012-02-09 23:19:31 +01:00
Andrea Mazzoleni
55fae37e7f Improves recovering after an aborted sync. 2012-02-09 23:17:36 +01:00
Andrea Mazzoleni
45e54685da Setting up for v1.9
Prints the new Opening parity message before the real work.
2012-02-02 19:26:33 +01:00
Andrea Mazzoleni
1dbd801dcb Better performance in fix keeping track of which part of the files is not initialized. 2011-10-09 07:51:25 +02:00
Andrea Mazzoleni
4adef9dc17 Saves the disk mapping inside the content file. 2011-10-01 19:18:32 +02:00
Andrea Mazzoleni
99515f610c Separates the disk array in a disk list and a handle mapping vector. 2011-09-23 21:48:50 +02:00
Andrea Mazzoleni
faa9559fe5 If a file is modified during a sync, the sync will continue. 2011-09-14 22:52:55 +02:00
Andrea Mazzoleni
66e9c359fd Restores the modification time of files in fixing. 2011-08-31 23:33:43 +02:00