Commit graph

93 commits

Author SHA1 Message Date
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
d35beda689 Improves the -G, --gui output. 2013-09-30 22:24:30 +02:00
Andrea Mazzoleni
53744ed2b1 Refactors the whole raid support. 2013-09-22 23:32:30 +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
7eca46e9fd Fixes RAIDQP recovering. 2013-09-20 22:04:46 +02:00
Andrea Mazzoleni
9af05bce98 Uses a more generic strategy for recoving. 2013-09-18 21:56:06 +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
194846f01b Uses q-parity instead qarity in messages. 2013-09-16 19:49:42 +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
18840848e9 Computation support for RAID-TP (Triple Parity). 2013-09-07 17:22:33 +02:00
Andrea Mazzoleni
4f891087a2 Optimizes the cache use for all the RAID computations. 2013-09-05 22:29:58 +02:00
Andrea Mazzoleni
3a5ce4e522 Restores the timestamp of empty files in fix. 2013-08-26 20:20:36 +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
9ad388724e Fixes some comments. 2013-08-21 22:04:10 +02:00
Andrea Mazzoleni
275ef2ed3c Implements an incremental rehash. 2013-07-01 23:08:25 +02:00
Andrea Mazzoleni
6e607ace08 In check doesn't report as unrecoverable error the missing destination of hardlinks. 2013-06-29 18:53:58 +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
6032576650 Sorts the files by physical address before inserting them for the first time. 2013-06-25 22:41:10 +02:00
Andrea Mazzoleni
4455ba7e4f Adds a random hash seed. 2013-06-16 00:33:46 +02:00
Andrea Mazzoleni
5c0b7d2e6c Better handling of return value in handle_create(). 2013-06-01 22:49:38 +02:00
Andrea Mazzoleni
2cc948a50c Removes instead of renananig new partially recovered files when aborting. 2013-06-01 08:31:47 +02:00
Andrea Mazzoleni
5fef489a25 When renaming incomplete files, scans the full file list to take into account for fragmented files. 2013-05-31 23:34:59 +02:00
Andrea Mazzoleni
d5c1843ba6 Deletes create file if the fix process is aborted. 2013-04-28 19:01:36 +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
8c7332cfda Rechecks the hash of imported files before using them. 2013-03-19 21:59:13 +01:00
Andrea Mazzoleni
473e6218b5 Prints the fix/check file result only if verbose is enabled. 2013-03-03 00:13:34 +01:00
Andrea Mazzoleni
3d911e1732 Prints the final status also for check. 2013-03-02 23:49:29 +01:00
Andrea Mazzoleni
c06605a568 Prints the result of each file in check and fix. 2013-03-02 23:17:55 +01:00
Andrea Mazzoleni
0200a2b7fa Adds a new -l, --log option. 2013-03-01 20:13:56 +01:00
Andrea Mazzoleni
7f8551fccb Doesn't stop if a hardlink cannot be created because the target doesn't exist. 2013-03-01 18:48:13 +01:00
Andrea Mazzoleni
e0acbda4bd Opens filtered out files in read-only mode. 2013-03-01 00:12:57 +01:00
Andrea Mazzoleni
4c058d25e2 Adds some more undocumented --test options. 2013-02-28 23:06:42 +01:00
Andrea Mazzoleni
3cd7b4ee03 Removes support to symlink to dirs in Windows. They are different than symlinks to files. 2013-02-28 21:56:02 +01:00
Andrea Mazzoleni
6da21cdbd9 Adds the -i, --import options to import deleted files for fix. 2013-02-27 21:07:16 +01:00
Andrea Mazzoleni
b9517ae4a3 Tries to recover also files without any valid hash. 2013-02-26 20:26:57 +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
ef13900bc3 Reviews comments. No functional change. 2013-02-24 11:10:10 +01:00
Andrea Mazzoleni
470dc9d47e More clear check for overflow. 2013-02-21 18:50:27 +01:00
Andrea Mazzoleni
a1e7786dd5 Moves handle_ancestor() to mkancestor() to be a generic function. 2013-02-20 13:29:58 +01:00
Andrea Mazzoleni
cc21721b2a Supports hardlinks in both Unix and Windows. 2013-01-27 18:06:15 +01:00
Andrea Mazzoleni
3cb0a2b8b4 Groups recover operations by disk, not by recover kind. 2013-01-27 16:48:53 +01:00
Andrea Mazzoleni
a0a213664b Saves and restores also empty directories. 2013-01-27 16:44:04 +01:00
Andrea Mazzoleni
2d6528fe90 If O_NOATIME use fails with EPERM, retry without it. 2012-11-04 00:26:30 +01:00
Andrea Mazzoleni
37f18e3bf4 Fixes a Segmentation Fault in fixing/checking. 2012-11-02 14:07:18 +01:00
Andrea Mazzoleni
91e74e91b8 Checks the parity size in sync. 2012-10-09 23:02:46 +02:00
Andrea Mazzoleni
1078bd4500 Adds and new -A option to only check hashes. 2012-10-07 23:18:10 +02:00