Commit graph

142 commits

Author SHA1 Message Date
Andrea Mazzoleni
efd8a3c01a Fixes a typo in messages. 2013-09-22 23:54:49 +02:00
Andrea Mazzoleni
6178b1be83 Fixes the computation of the blockmax when importing a text file. 2013-09-22 23:54:19 +02:00
Andrea Mazzoleni
c5d0aa01c1 Adds a new -C, --gen-conf option to generate the configuration file from the content file. 2013-09-21 15:53:46 +02:00
Andrea Mazzoleni
194846f01b Uses q-parity instead qarity in messages. 2013-09-16 19:49:42 +02:00
Andrea Mazzoleni
2146794e8d Corrects typos in the messages. 2013-09-11 22:41:03 +02:00
Andrea Mazzoleni
e4e13a669b Marks FUSE filesystem as with not persistent inodes,
disabling inode use in such case.
2013-08-27 23:02:12 +02:00
Andrea Mazzoleni
4fb96c0dec In the messages uses WARNING in uppercase. 2013-08-27 22:42:50 +02:00
Andrea Mazzoleni
8eafeafcb6 Removes the --find-by-name, -N option. Now it automatically searches
by name if a file is not found searching by inode, automatically
reassigning inodes in restored files
2013-08-26 20:33:25 +02:00
Andrea Mazzoleni
1e4bc72098 Adds a check to avoid to use FUSE filesystem. 2013-08-25 22:39:58 +02:00
Andrea Mazzoleni
181c8e71cf Rewrites content file if one is missing. 2013-08-25 22:39:05 +02:00
Andrea Mazzoleni
6ac6d994a6 Adds a check about the maximum number of disks. 2013-08-25 22:37:39 +02:00
Andrea Mazzoleni
60d7189bdb Checks if the binary file is generated by a newer version of SnapRAID. 2013-08-25 17:54:39 +02:00
Andrea Mazzoleni
11888d9e0d Force content saving if it's in text format. 2013-08-25 17:53:34 +02:00
Andrea Mazzoleni
e4fe228cc1 Uses the deleted block offset when reading the text content to enlarge the parity size.
This ensures a better consistency check on the size of parity.
2013-08-23 23:02:03 +02:00
Andrea Mazzoleni
d141c7bc13 Writes indexes instead of disk names in the binary format.
Better detection of empty disks to remove the mapping record.
2013-08-23 22:35:14 +02:00
Andrea Mazzoleni
6878f3f28c Encodes STAT_NSEC_INVALID as 0 adding 1 to other values. 2013-08-22 21:30:19 +02:00
Andrea Mazzoleni
27941f5b40 Writes in the text content file only the inf record with valid hash for CHG and DELETED. 2013-08-21 23:21:18 +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
4921ff6f80 Saves in the content files info only for positions with at least one hash.
Also checks that when loading.
2013-08-21 22:03:09 +02:00
Andrea Mazzoleni
9ca2637702 When reading in text mode adds the block info only if there is a block with a hash. 2013-08-21 20:08:11 +02:00
Andrea Mazzoleni
9324933be0 Changes again the binary format for hole and inf 2013-08-20 14:25:29 +02:00
Andrea Mazzoleni
cab5309fd2 Updates the content text write process to the new changes. 2013-08-20 13:06:18 +02:00
Andrea Mazzoleni
3fc1fd1d65 Drops old sign check for text content file. 2013-08-20 12:49:31 +02:00
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