Andrea Mazzoleni
ad57aafd8f
Refactor the parity size detection before sync.
...
Now we resize the parity only after checking the size of all
the parity file.
2015-02-01 18:48:50 +01:00
Andrea Mazzoleni
ed8686a93e
Sync the parity file before printing Everything OK
...
This avoids misinterpretation in case of errors.
2015-01-31 16:44:46 +01:00
Andrea Mazzoleni
ffe7f6fa57
Adds new files support.c/h for low level support functions.
2015-01-02 18:52:04 +01:00
Andrea Mazzoleni
0b59dc92a6
Allows sync and scrub to continue on input/output errors.
...
There is an upper limit on the allowed errors in
the new opt.io_error_limit variable.
2014-12-30 09:45:35 +01:00
Andrea Mazzoleni
aee56ba2c7
Prints a final warning in case of silent error for sync and scrub.
2014-12-29 19:36:01 +01:00
Andrea Mazzoleni
47c2165f63
Removes duplicate code introducing block_is_enabled().
2014-12-29 19:11:03 +01:00
Andrea Mazzoleni
1f70f1ea33
Uses a better error detection in sync/scrub.
2014-12-27 23:14:06 +01:00
Andrea Mazzoleni
bc4d2dc3f6
Keeps track of IO errors in scrub like we do for silent errors.
2014-12-07 00:07:36 +01:00
Andrea Mazzoleni
f200a1f6b8
Refreshes free space info also before first content write.
2014-12-07 00:06:53 +01:00
Andrea Mazzoleni
d9908487ea
Beautifies cmdline program.
2014-11-12 20:47:07 +01:00
Andrea Mazzoleni
c647e75885
Adds regression test for autosave.
2014-11-10 23:06:14 +01:00
Andrea Mazzoleni
baef69c949
Takes extra precautions of flushing disk cache with autosave.
...
We must flush every time we save the content file, not only
the last time.
2014-11-10 22:46:19 +01:00
Andrea Mazzoleni
7e9a5e6a6d
Stores the free space in the content file.
...
This avoids the need to access data and parity disks in
the status command.
Also removed some data disk access, in list, dup and similar
commands that don't need to scan the disks.
2014-11-09 19:14:29 +01:00
Andrea Mazzoleni
4419801674
Merges parity info in a parity struct.
2014-11-09 10:32:00 +01:00
Andrea Mazzoleni
7718e6d206
Renames snapraid_parity to handle.
2014-11-09 10:25:39 +01:00
Andrea Mazzoleni
447f1f1294
Makes fix to autodetect moved files and use them in recovering.
2014-10-19 22:25:30 +02:00
Andrea Mazzoleni
4886a5d13f
Gives a hint about filled disks in parity write error.
2014-10-12 10:50:48 +02:00
Andrea Mazzoleni
876bddcf4c
Beautifies the code.
2014-09-27 00:32:39 +02:00
Andrea Mazzoleni
0583799ad0
Avoids fake identation.
2014-09-27 00:23:05 +02:00
Andrea Mazzoleni
5dc4365394
Removes some clang warnings.
2014-09-17 21:49:37 +02:00
Andrea Mazzoleni
4adcf7c5cc
Prints time stats also in scrub.
2014-09-08 21:18:11 +02:00
Andrea Mazzoleni
6700b928c2
Adds a new file_mode setting to control the file access mode.
2014-09-04 22:52:04 +02:00
Andrea Mazzoleni
eb5b8da65c
Adds a missing cpu time call.
...
Not really relevant, just for completeness.
2014-08-02 10:15:23 +02:00
Andrea Mazzoleni
b3d8092c08
Clearifies some comments.
2014-07-01 22:56:18 +02:00
Andrea Mazzoleni
5dfc67ec18
Keeps stats about usage time of disk and cpu.
2014-06-25 22:32:36 +02:00
Andrea Mazzoleni
c6a3742b40
Adds the new -F, --force-full option to force a full sync.
2014-06-15 19:01:07 +02:00
Andrea Mazzoleni
efd63bc032
Renames "undetermined" to "past" as it represents better the meaning.
2014-06-13 20:52:03 +02:00
Andrea Mazzoleni
de86307a27
Uses a smarter copy detection to avoid false positive.
...
Now a if the file has a zero nanosecond timestamp, it must
match the full pathname.
Also add the new -N option and an new undocumented test-nano
command to set randomly the nanosecond timestamp of files
that have it at zero.
2014-05-15 23:45:51 +02:00
Andrea Mazzoleni
0d231038ff
Extends the sync regression test to cover error conditions.
2014-04-07 23:12:40 +02:00
Andrea Mazzoleni
3c8b659c8a
Some more semplifications in error reporting.
2014-04-07 22:05:25 +02:00
Andrea Mazzoleni
68aa553bdf
Uses a simpler error management in sync.
2014-04-04 23:06:00 +02:00
Andrea Mazzoleni
44ef039a13
Different source organization.
2014-03-23 17:50:27 +01:00