Commit graph

54 commits

Author SHA1 Message Date
Andrea Mazzoleni
fb759fec84 Rename some shadow variables
This removes some warnings in gcc 4.6 version.
2015-10-08 22:33:41 +02:00
Andrea Mazzoleni
0c7ea790c3 Check the block state before getting the parity mapping
This case is not problematic, but we enforce the check order
for consistency.
2015-10-08 18:41:01 +02:00
Andrea Mazzoleni
610c59e1d8 Fix an inconsistency check about not mapped copied files 2015-10-07 23:18:06 +02:00
Andrea Mazzoleni
452a595067 Adjust verbs in comments 2015-10-07 22:07:20 +02:00
Andrea Mazzoleni
b17e618d49 Add an extensive parity filesystem check
With the new mapping it's now possible to check everything
in a very fast way.
2015-10-05 21:40:44 +02:00
Andrea Mazzoleni
9bc5f9e5ce Change the internal mapping to a tree of chunk
This is intended to save memory as now we can use a fixed
block of 17 bytes to store the block information, compared
to the previous 28/36 bytes.
2015-10-04 23:17:13 +02:00
Andrea Mazzoleni
fa775d24a8 More interface changes to prepare to the use of tree mapping 2015-10-04 22:03:58 +02:00
Andrea Mazzoleni
f719ee4f57 Switch from deleted blocks to deleted files
This will allow an easier management of the parity allocation.
2015-10-01 23:24:44 +02:00
Andrea Mazzoleni
0407c945db Change the interface for parity allocation
This will allow a more compact representation
of the parity allocation
2015-10-01 23:24:06 +02:00
Andrea Mazzoleni
ebe3b06228 Customize message for mount point not accessible 2015-06-23 21:39:18 +02:00
Andrea Mazzoleni
246c1d3b72 Be more specific in the empty message 2015-04-30 22:05:53 +02:00
Andrea Mazzoleni
5c5e80a239 Change the return code for 'diff' if a sync is required 2015-04-28 19:15:16 +02:00
Andrea Mazzoleni
de0c437bd2 Put a clear separation between log and msg functions 2015-04-20 22:07:42 +02:00
Andrea Mazzoleni
a5a72f4a31 Change some warnings to errors to always print them on screen 2015-04-19 21:13:05 +02:00
Andrea Mazzoleni
83d967e2c0 Change "diff" to return an error if a "sync" is required 2015-03-02 23:01:15 +01:00
Andrea Mazzoleni
e56de653da Introduce a new messaging system 2015-02-22 14:31:03 +01:00
Andrea Mazzoleni
ea07a7025e Escape path in the log file 2015-02-12 22:55:05 +01:00
Andrea Mazzoleni
2ac751b6d9 Put all the stdout output also in stdlog 2015-02-03 19:35:43 +01:00
Andrea Mazzoleni
798de7ca99 Change the flush logic for streams
Now stdout and stderr are always line buffered, and stdlog only
flushed on request.
2015-02-03 18:29:11 +01:00
Andrea Mazzoleni
b5ce575981 Change the log and output handling
Now the log file contains all the errors messages,
and all the tag lines.
2015-02-02 23:39:46 +01:00
Andrea Mazzoleni
5665336c16 Change the rule output format to match the input one 2015-01-27 23:32:13 +01:00
Andrea Mazzoleni
83e1629868 When excluding files print also the rule excluding them 2015-01-27 23:10:38 +01:00
Andrea Mazzoleni
bd475e5314 Fixes a typo in comment. 2015-01-10 10:21:05 +01:00
Andrea Mazzoleni
ffe7f6fa57 Adds new files support.c/h for low level support functions. 2015-01-02 18:52:04 +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
e625fc1292 Uses proper filtering in import/search. 2014-11-19 22:55:24 +01:00
Andrea Mazzoleni
d9908487ea Beautifies cmdline program. 2014-11-12 20:47:07 +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
2bd2579823 In diff doesn't abort for force-empty or force-zero. 2014-10-25 17:47:22 +02:00
Andrea Mazzoleni
98deb4ba91 Fixes a recurring typo in comments. 2014-10-19 21:09:22 +02:00
Andrea Mazzoleni
3421ec6177 Warning removal for #ifdef build. 2014-10-18 16:52:28 +02:00
Andrea Mazzoleni
37e7ca2faa Removes warning messages in Windwos about not updated metadata. 2014-10-14 23:01:01 +02:00
Andrea Mazzoleni
55006d76f3 Merges lstat_sync() and filephy() in Windows reduce syscalls. 2014-10-14 22:47:21 +02:00
Andrea Mazzoleni
3e2d805d08 Extends the status command to show free space. 2014-10-13 23:47:25 +02:00
Andrea Mazzoleni
a76aa1dd0b Removes now unnecessary Mapping message. 2014-10-04 16:43:11 +02:00
Andrea Mazzoleni
ca5e635aa1 In Windows ensures to use synced information for new files.
Keeps track of the sync state of info with a new st_sync field
in the stat struct.
2014-10-04 10:27:23 +02:00
Andrea Mazzoleni
a0c6965959 Reads the physical offset only for new files. 2014-10-03 21:28:56 +02:00
Andrea Mazzoleni
c513af08ff Ensures to call lstat_ex() only on regular files. 2014-10-01 21:44:35 +02:00
Andrea Mazzoleni
f117074004 Uses Windows dir stream to make dir listing faster. 2014-09-30 21:54:49 +02:00
Andrea Mazzoleni
876bddcf4c Beautifies the code. 2014-09-27 00:32:39 +02:00
Andrea Mazzoleni
ea4eafb60d Fixes the Windows regression test. 2014-07-11 23:33:19 +02:00
Andrea Mazzoleni
71ff0620ce Sort the dir alphabetically if explicitely requested.
This ensures that the test is independent of the directory order
of the files.
2014-07-11 19:59:01 +02:00
Andrea Mazzoleni
3caa251d83 Adjusts some consistency messages. 2014-06-25 23:23:22 +02:00
Andrea Mazzoleni
05b17e5f0b Allow disks not supporting physical offsets. 2014-06-16 23:12:49 +02:00
Andrea Mazzoleni
c5d6dd0cc7 Reworks the keep function to make it easier to understand. 2014-06-15 17:59:00 +02:00
Andrea Mazzoleni
69acc1e251 Disables reallocation if a rehash is in progress.
Be more conservative about rehash. No functional change is expected
because we were already checking rehash for blocks with updated
hash. But this way the code is simpler and easy to understand.
2014-06-15 17:56:43 +02:00
Andrea Mazzoleni
efd63bc032 Renames "undetermined" to "past" as it represents better the meaning. 2014-06-13 20:52:03 +02:00
Andrea Mazzoleni
e76441e789 With the nocopy option also remove hash info from previous sync.
If we want to disable the automatic hashing assumption of copy,
we need also to remove any previous hash info already stored
in the content file by previous sync commands run without the
nocopy option.
2014-06-05 23:06:13 +02:00
Andrea Mazzoleni
7e119f26bc More specific warning about files order. 2014-06-02 17:15:52 +02:00
Andrea Mazzoleni
6473f22c2b Adds a missing ' in the messages. 2014-06-02 17:10:29 +02:00