Commit graph

53 commits

Author SHA1 Message Date
Andrea Mazzoleni
15cfa07454 Addresses extra warnings. 2014-03-10 21:59:25 +01:00
Andrea Mazzoleni
d0b7012376 Fixes a typo. 2014-03-04 19:34:55 +01:00
Andrea Mazzoleni
4df7961099 Fixes usage of scrub default settings. 2014-02-18 00:15:34 +01:00
Andrea Mazzoleni
5d8f17dcd1 Keeps the default value of -p and -o. 2014-02-16 21:05:25 +01:00
Andrea Mazzoleni
b1f2ff9469 Fixes a possible integer overflow in scrub counting.
Conflicts:
	HISTORY
2014-02-15 17:19:25 +01:00
Andrea Mazzoleni
f3864bc797 Fixes a typo in a comment. 2014-02-14 22:12:47 +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
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
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
b423e7490e Prints data errors also for parity in scrub. 2013-12-15 10:09:51 +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
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
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
1c07ed86f8 Changes the output format to make it more consistent between commands. 2013-10-19 13:24:35 +02:00
Andrea Mazzoleni
bd8f592a1a Merge branch 'b4'
Conflicts:
	HISTORY
	configure.ac
2013-10-09 22:35:50 +02:00
Andrea Mazzoleni
60cdf39bb9 Fixes scrub with -p0. 2013-10-09 22:31:51 +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
1f0da860c7 Uses parity_error to mark errors in the parity.
We needs to use a different tag because the format is different.
2013-10-03 21:47:25 +02:00
Andrea Mazzoleni
d35beda689 Improves the -G, --gui output. 2013-09-30 22:24:30 +02:00
Andrea Mazzoleni
350c94a869 Merge branch 'b4' 2013-09-27 14:30:52 +02:00
Andrea Mazzoleni
0489c98bb0 Fixes the percentage computation in scrub. 2013-09-26 21:14:47 +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
9d5bb82bd3 Fixes scrub for RAIDQP parity. 2013-09-20 22:04:22 +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
4f891087a2 Optimizes the cache use for all the RAID computations. 2013-09-05 22:29:58 +02:00
Andrea Mazzoleni
524ffa00f2 Adds options -p and -o for scrub. 2013-08-22 23:03:13 +02:00
Andrea Mazzoleni
adaf87a17d Checks for zero count in scrub. 2013-08-22 21:18:50 +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
9a57dd6dc8 Adds a test for the silent error fixing. 2013-08-18 20:30:10 +02:00
Andrea Mazzoleni
367d243f63 Always recheck bad blocks in scrub. 2013-08-18 19:35:25 +02:00
Andrea Mazzoleni
f8d5c6dedc Print error report only if something was processed. 2013-08-07 22:48:48 +02:00
Andrea Mazzoleni
069452680d In scrupt prints a report of the number of errors found. 2013-08-07 22:25:41 +02:00
Andrea Mazzoleni
c2f8b49153 Reviews some comments. 2013-08-07 20:14:28 +02:00
Andrea Mazzoleni
24e9b8863a In scrub doesn't report silent errors if they are caused by unsynched data. 2013-07-31 22:31:57 +02:00
Andrea Mazzoleni
30fabb7d50 Fixes some comments. 2013-07-30 20:49:08 +02:00
Andrea Mazzoleni
275ef2ed3c Implements an incremental rehash. 2013-07-01 23:08:25 +02:00
Andrea Mazzoleni
b558d9d831 Fixes the computation of the scrub ending block address. 2013-06-29 21:26:50 +02:00