Commit graph

54 commits

Author SHA1 Message Date
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
Andrea Mazzoleni
2aa36a5df5 Adds -G and diff commands. 2011-06-20 20:35:04 +02:00
Andrea Mazzoleni
46fb4a311a More precise error listing for unrecoverable files.
The "Stopping" message is now always in stdout.
2011-06-11 12:05:02 +02:00
Andrea Mazzoleni
3d12eaaa97 More precise error message if a file is modified. 2011-06-11 10:17:54 +02:00
Andrea Mazzoleni
2b421becad Some warnings removal. 2011-05-05 21:11:25 +02:00
Andrea Mazzoleni
4d49242350 Better path management. 2011-04-30 10:57:23 +02:00
Andrea Mazzoleni
f4f5554287 Reduces memory occupation. 2011-04-28 23:09:19 +02:00
Andrea Mazzoleni
f855424082 Adds recovering at RAID6 support.
Adds selftesting of RAID5 and RAID5.
2011-04-24 10:24:05 +02:00
Andrea Mazzoleni
08831c6641 Initial RAID6 support. Not yet complete.
Uses Murmur3 as default hash.
Check now returns and error even if only recoverable errors are present.
2011-04-23 21:38:26 +02:00
Andrea Mazzoleni
bbd8e95a44 Removes explicit references to MD5. 2011-04-12 22:16:35 +02:00
Andrea Mazzoleni
81f14d1dfb The progress estimation not takes care of the actual work to do. 2011-03-28 20:55:57 +02:00
Andrea Mazzoleni
face268eb1 Better MD5 support with test vectors, speed test and libcrypto fast implementation. 2011-03-25 21:04:46 +01:00
Andrea Mazzoleni
87bb5c7a66 Adds the -t option to limit the number of blocks processed.
More tests with incomplete sync.
2011-03-23 18:54:08 +01:00
Andrea Mazzoleni
0451c9e8a0 Handles correctly file deletion in sync. 2011-03-22 23:23:45 +01:00
Andrea Mazzoleni
de07510220 Uses inodes to identify files.
It allows to automatically handle file move or rename without the need to rehash the file.
2011-03-20 22:36:49 +01:00
Andrea Mazzoleni
d48bf97685 Uses IEC binary prexies KiB, MiB, etc. 2011-03-20 10:49:29 +01:00
Andrea Mazzoleni
e80009334b Even better error management. More precise and explicative. 2011-03-19 22:00:08 +01:00
Andrea Mazzoleni
f443a7f089 Better error management 2011-03-18 22:38:11 +01:00
Andrea Mazzoleni
a30c93024a Manages the degenerated cases of empty or skipping all.
Some change in the check screen output.
2011-03-17 16:17:59 +01:00