Commit graph

158 commits

Author SHA1 Message Date
Andrea Mazzoleni
70244133f4 Changes the meaning of the -G, --gui option to now remove only
the interactive output. All the other log options are not enabled
by default.
2013-10-03 22:44:33 +02:00
Andrea Mazzoleni
d35beda689 Improves the -G, --gui output. 2013-09-30 22:24:30 +02:00
Andrea Mazzoleni
1582dba2c5 Doesn't update parity for blocks that are not changed even if the file has a different timestamp. 2013-09-29 21:01:31 +02:00
Andrea Mazzoleni
d525b4a14a Reduces memory usage, with new array growing by fixed size and not exponential. 2013-09-28 09:40:08 +02:00
Andrea Mazzoleni
7f02cd068f Merge branch 'b4' 2013-09-27 20:23:02 +02:00
Andrea Mazzoleni
cffbba8aee Avoids to allocate unused space in the block array. 2013-09-27 16:55:21 +02:00
Andrea Mazzoleni
350c94a869 Merge branch 'b4' 2013-09-27 14:30:52 +02:00
Andrea Mazzoleni
210975556e Fixes rehash when converting from x64 to x86 architecture. 2013-09-26 20:34:01 +02:00
Andrea Mazzoleni
f3eb9d9d22 Merge branch 'b4' 2013-09-24 21:45:57 +02:00
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
31b8abb9bd Merge branch 'b4'
Conflicts:
	HISTORY
	configure.ac
2013-09-21 16:04:22 +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
81d3b2ad78 Enforces the 21 data disk limit. 2013-09-18 23:16:39 +02:00
Andrea Mazzoleni
f8303d2963 Adds preliminary support for QuadParity. 2013-09-17 23:05:44 +02:00
Andrea Mazzoleni
194846f01b Uses q-parity instead qarity in messages. 2013-09-16 19:49:42 +02:00
Andrea Mazzoleni
828727f7dc Completes merge from master. 2013-09-15 21:28:15 +02:00
Andrea Mazzoleni
f61fcfd850 Merge branch 'master' into tripleparity
Conflicts:
	Makefile.am
	state.c
2013-09-15 21:23:15 +02:00
Andrea Mazzoleni
b72f7bf9b3 Uses a for loop to handle parities. 2013-09-15 21:12:41 +02:00
Andrea Mazzoleni
142f6ce119 Implements full RAIDTP support. 2013-09-11 23:30:32 +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