Commit graph

119 commits

Author SHA1 Message Date
Andrea Mazzoleni
9d00435b42 Uses the CRC_IV directly in the crc32c() function. 2013-08-19 12:45:12 +02:00
Andrea Mazzoleni
5136eb3719 Uses -1 as initial value for the CRC computation. 2013-08-19 12:28:19 +02:00
Andrea Mazzoleni
9d0af268d4 Somes changes at the new binary format. 2013-08-19 11:19:26 +02:00
Andrea Mazzoleni
746901d0be Adds a the new -e, --filter-error option for fix and check. 2013-08-18 19:24:55 +02:00
Andrea Mazzoleni
f2e6a0328a Uses STAT_NSEC_INVALID in the portable interface instead of FILE_MTIME_NSEC_INVALID. 2013-08-18 18:02:25 +02:00
Andrea Mazzoleni
3698064040 Uses a binary content file. 2013-08-17 16:17:53 +02:00
Andrea Mazzoleni
d87f371a1d Fixes again the parity size computation when reading. 2013-08-17 11:58:31 +02:00
Andrea Mazzoleni
235a9cbbf1 Removes references to old 'inv' blocks. 2013-08-16 22:16:49 +02:00
Andrea Mazzoleni
8f953903cc Computes correctly the parity size when reading the content file. 2013-08-16 22:15:23 +02:00
Andrea Mazzoleni
865fc0c1f4 Adds a consistency check about missing previous hash. 2013-08-01 19:36:12 +02:00
Andrea Mazzoleni
0db2428132 On error prints the correct blk tag. 2013-08-01 19:04:47 +02:00
Andrea Mazzoleni
d8870cdd42 Adds a new --force-device option to allow to fix with disk with same device ID. 2013-07-26 14:50:52 +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
d93f2f0595 Some variables renaming and relocation. 2013-06-29 18:15:24 +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
e0164b29d1 Keeps track of the last sync time of each block. 2013-06-23 22:54:54 +02:00
Andrea Mazzoleni
ef53cd4086 Uses the new tommy_arrayof type. 2013-06-23 21:49:36 +02:00
Andrea Mazzoleni
1b0a38f924 Moves the seed info in the checksum line. 2013-06-22 18:26:21 +02:00
Andrea Mazzoleni
8fc805c272 Adds preliminary support to store additional information for each offset. 2013-06-22 18:13:19 +02:00
Andrea Mazzoleni
fceaa8a4cf Uses a lock file instead than a pid file.
It's more appropriate for a not daemon.
2013-06-18 21:06:31 +02:00
Andrea Mazzoleni
bc2a837953 Adds pid file support. 2013-06-17 23:50:26 +02:00
Andrea Mazzoleni
4455ba7e4f Adds a random hash seed. 2013-06-16 00:33:46 +02:00
Andrea Mazzoleni
548e90c30f Activates spooky2 and adds the new rehash command. 2013-06-15 23:42:11 +02:00
Andrea Mazzoleni
7ad4d26e0c Fixes the computation of the expected parity size. 2013-06-10 18:35:25 +02:00
Andrea Mazzoleni
e64badd05e Adds Spooky hash and a better RAID algo selection. 2013-06-09 22:55:57 +02:00
Andrea Mazzoleni
ca2da5178a Print the disk serial number if there is a collision. 2013-06-08 14:53:59 +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
07d5027936 When reading the configuration checks if a disk name is duplicated. 2013-03-28 18:37:31 +01:00
Andrea Mazzoleni
dffb1c655f Fixes the device detection of the pool dir.
We should not remove the file name, because it's already the directory.
2013-03-10 09:46:20 +01:00
Andrea Mazzoleni
8a7debd4f1 Doesn't print anymore the list of filtered files because it's going to be printed directly by check and fix. 2013-03-05 19:01:29 +01:00
Andrea Mazzoleni
2a9430e439 Uses a simpler test for UUID change. 2013-03-04 21:44:29 +01:00
Andrea Mazzoleni
1973c32f30 Allows 1 or 2 UUID change without the need of the -U option. 2013-03-04 21:37:26 +01:00
Andrea Mazzoleni
768113c670 Adds UUID to check to detect disk misplacement. 2013-03-03 22:39:46 +01:00
Andrea Mazzoleni
8810d7b05d Uses getc() instead of geteol() when we are expecting a space. 2013-03-03 17:42:42 +01:00
Andrea Mazzoleni
0200a2b7fa Adds a new -l, --log option. 2013-03-01 20:13:56 +01:00
Andrea Mazzoleni
08cd411748 Fixes -m option. Now it really excludes present files. 2013-03-01 18:29:04 +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
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
acad6aad04 Adds the new -m, --filter-missing options to undelete files. 2013-02-24 11:33:09 +01:00
Andrea Mazzoleni
38e1f4e251 Adds the new pool command to create a virtual view for the array. 2013-02-22 22:17:54 +01:00
Andrea Mazzoleni
91752b255b Prints more informative comments if the hash type is not defined or MD5. 2013-01-30 19:26:38 +01:00
Andrea Mazzoleni
cc21721b2a Supports hardlinks in both Unix and Windows. 2013-01-27 18:06:15 +01:00
Andrea Mazzoleni
a0a213664b Saves and restores also empty directories. 2013-01-27 16:44:04 +01:00
Andrea Mazzoleni
e60161ec05 Checks for empty options in the configuration file. 2013-01-15 22:32:20 +01:00