Commit graph

532 commits

Author SHA1 Message Date
Andrea Mazzoleni
4fb96c0dec In the messages uses WARNING in uppercase. 2013-08-27 22:42:50 +02:00
Andrea Mazzoleni
e800b190a3 Reviews the HISTORY. 2013-08-26 21:39:12 +02:00
Andrea Mazzoleni
d0696e5380 Reviews some comment and really clear unused inodes. 2013-08-26 21:02:20 +02:00
Andrea Mazzoleni
4f309c042f Ensures that a changed link triggers the content write. 2013-08-26 20:50:15 +02:00
Andrea Mazzoleni
e12f5f0d2a Prints the supported nanosecond function with -T. 2013-08-26 20:38:40 +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
3a5ce4e522 Restores the timestamp of empty files in fix. 2013-08-26 20:20:36 +02:00
Andrea Mazzoleni
1e5a9b5992 Warning removal in Windows. 2013-08-25 23:08:27 +02:00
Andrea Mazzoleni
18126044f3 Updates TODO. 2013-08-25 22:43:48 +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
cae50bbeba Warning removal about unused result. 2013-08-25 22:36:38 +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
927bd8a564 Updates the example configuration files. 2013-08-25 17:50:22 +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
fb5cc1c3b4 Doesn't remove anymore deleted blocks before sync.
They are going to be automatically excluded when we write the content file.
2013-08-23 18:45:34 +02:00
Andrea Mazzoleni
0eddc7c592 Warning removal in some architectures. 2013-08-23 18:25:28 +02:00
Andrea Mazzoleni
6a25acb8dc Fixes inode assignenment in nix architectures different than Linux. 2013-08-23 18:24:52 +02:00
Andrea Mazzoleni
524ffa00f2 Adds options -p and -o for scrub. 2013-08-22 23:03:13 +02:00
Andrea Mazzoleni
5ef045b074 Adds acknowledgments. 2013-08-22 23:00:01 +02:00
Andrea Mazzoleni
e8a120feb8 Fixes compilation in BigEndian architectures. 2013-08-22 21:41:41 +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
adaf87a17d Checks for zero count in scrub. 2013-08-22 21:18:50 +02:00
Andrea Mazzoleni
7fa1241b97 Adds some regression tests about comparison of text and binary content files. 2013-08-21 23:34:16 +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
b247524630 Updates some comments. 2013-08-21 22:34:22 +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
9ad388724e Fixes some comments. 2013-08-21 22:04:10 +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
49bc1e0af7 Fixes the help screen. 2013-08-21 20:09:01 +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
38f814b9bc Reviews the TODO list. 2013-08-20 21:07:13 +02:00
Andrea Mazzoleni
6a4879caad Uses the crc32q Intel instruction in x64 platforms. 2013-08-20 20:33:22 +02:00
Andrea Mazzoleni
28bdd0f7b7 Adds the speed test for CRC. 2013-08-20 18:55:54 +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
ca52ecc4c5 Improves documentation. 2013-08-20 12:23:46 +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
053bdd9952 Faster CRC generic implementation. 2013-08-19 12:13:08 +02:00
Andrea Mazzoleni
3a6128f248 Adds test vectors for the CRC. 2013-08-19 12:11:47 +02:00
Andrea Mazzoleni
9d0af268d4 Somes changes at the new binary format. 2013-08-19 11:19:26 +02:00
Andrea Mazzoleni
2a35b00d16 Adds extra checks when decoding binary integers. 2013-08-19 11:18:50 +02:00
Andrea Mazzoleni
9a57dd6dc8 Adds a test for the silent error fixing. 2013-08-18 20:30:10 +02:00
Andrea Mazzoleni
a774b62448 Adds scrub documentation. 2013-08-18 19:35:40 +02:00
Andrea Mazzoleni
367d243f63 Always recheck bad blocks in scrub. 2013-08-18 19:35:25 +02:00