Andrea Mazzoleni
ffe7f6fa57
Adds new files support.c/h for low level support functions.
2015-01-02 18:52:04 +01:00
Andrea Mazzoleni
297d648675
Removes the unnecessary windows_randomize declaration.
2015-01-02 18:07:59 +01:00
Andrea Mazzoleni
b69d626b88
Adds missing spin.c file.
2015-01-02 17:52:36 +01:00
Andrea Mazzoleni
b24807704e
Adds preliminary support for spinning up and down commands.
2015-01-02 15:53:15 +01:00
Andrea Mazzoleni
de4e5eef43
Uses a better message for the Low Memory condition.
2014-12-31 09:09:20 +01:00
Andrea Mazzoleni
0c4c1f78a4
Adds the new -L, --error-limit options.
...
And also sets the default limit to 100.
2014-12-30 10:44:11 +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
3245083ed7
Minor changes at the help message.
2014-12-30 09:38:37 +01:00
Andrea Mazzoleni
34f7f342aa
Ensures that write/append operate at least on one byte.
2014-12-29 19:57:11 +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
5cc16bd4ad
Renames -s and -t to -S and -B.
...
We need some free space in option names and these
ones are anyway intended to be manual ones.
2014-12-29 09:00:14 +01:00
Andrea Mazzoleni
c6c9e9130e
Adds new badonly and synced only options.
...
They are enabled with -e, --filter-error to limit
the operations to only bad blocks and avoiding to
restore not synced files.
2014-12-29 08:50:20 +01:00
Andrea Mazzoleni
d8907e8556
Some comments adjustment.
2014-12-29 00:01:35 +01:00
Andrea Mazzoleni
c8edf2f002
In scrub don't check the inode to verify if the file is synced.
...
On filesystem without persistent inode, they can be different from
one run to another.
In sync they are automatically adjusted, but not in scrub.
2014-12-29 00:00:04 +01:00
Andrea Mazzoleni
b47d78c581
Splits create and truncate operations.
2014-12-28 19:11:58 +01:00
Andrea Mazzoleni
25ab1b93de
Some minor comment changes.
2014-12-28 17:52:49 +01:00
Andrea Mazzoleni
1f70f1ea33
Uses a better error detection in sync/scrub.
2014-12-27 23:14:06 +01:00
Andrea Mazzoleni
01684a3784
Removes one more rand() use.
2014-12-27 12:47:40 +01:00
Andrea Mazzoleni
c0dc2e1c63
Drops support for Windows 2000.
2014-12-27 12:01:45 +01:00
Andrea Mazzoleni
8c98864395
Uses the OS random support instead of rand().
2014-12-27 11:56:55 +01:00
Andrea Mazzoleni
95e4ed03bf
Removes rand() use from the raid module.
2014-12-27 11:45:59 +01:00
Andrea Mazzoleni
b147019224
Allows --filter-error also in dry command.
2014-12-24 09:26:29 +01:00
Andrea Mazzoleni
14c77a474c
In diff doesn't print "add" if "copy" is already printed.
2014-12-09 21:25:17 +01:00
Andrea Mazzoleni
17db6da4cf
Fixes build issue due typo in recent change.
2014-12-09 21:06:49 +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
3bce9eda7e
More explicative message for parity overflow.
2014-11-24 23:07:39 +01:00
Andrea Mazzoleni
2e78e3c6c1
More comments about error 1450 in Windows.
2014-11-21 22:36:57 +01:00
Andrea Mazzoleni
e625fc1292
Uses proper filtering in import/search.
2014-11-19 22:55:24 +01:00
Andrea Mazzoleni
790e7dfa5e
Simplifies a disk check to avoid static analyzer warnings.
2014-11-15 18:33:39 +01:00
Andrea Mazzoleni
d9908487ea
Beautifies cmdline program.
2014-11-12 20:47:07 +01:00
Andrea Mazzoleni
7d6c30333f
Uses a more precise intructions set detection.
...
This allows to build with old assembler programs.
2014-11-12 19:52:35 +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
0c539a0b35
Handles better upgrading in the status command.
2014-11-09 22:24:20 +01:00
Andrea Mazzoleni
87e6497665
Checks parity UUID before proceding.
2014-11-09 19:51:58 +01:00
Andrea Mazzoleni
af4ec2286f
Prints parity uuid in --gen-conf.
2014-11-09 19:37:25 +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
8ee1131bed
Refactors some mapping/find_disk uses.
2014-11-09 10:51:48 +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
7054256c62
Ensures to test also the progress update.
2014-11-04 23:51:45 +01:00
Andrea Mazzoleni
c194fef5f4
Increases code coverage for TommyDS.
2014-11-04 22:09:01 +01:00
Andrea Mazzoleni
2346fa0d60
Fixes invalid use of disk variable in dry.
2014-11-01 18:00:56 +01:00
Andrea Mazzoleni
b91ae16e3e
Fixes invalid write in case of memory exaustion.
2014-11-01 17:52:04 +01:00
Andrea Mazzoleni
0b36b3205c
Adds more info in the status log.
2014-11-01 17:38:14 +01:00
Andrea Mazzoleni
88e53fd9a3
Removes count block info when reading/writing content file.
2014-11-01 16:53:11 +01:00
Andrea Mazzoleni
2bd2579823
In diff doesn't abort for force-empty or force-zero.
2014-10-25 17:47:22 +02:00
Andrea Mazzoleni
acb1bad9b0
Computes the effective wasted space, taking into account the parity size.
2014-10-25 16:36:19 +02:00