Commit graph

40 commits

Author SHA1 Message Date
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
Andrea Mazzoleni
de86307a27 Uses a smarter copy detection to avoid false positive.
Now a if the file has a zero nanosecond timestamp, it must
match the full pathname.
Also add the new -N option and an new undocumented test-nano
command to set randomly the nanosecond timestamp of files
that have it at zero.
2014-05-15 23:45:51 +02:00
Andrea Mazzoleni
785a42e97c Reviews message about UUID not enabled. 2014-04-05 16:04:53 +02:00
Andrea Mazzoleni
16ddf36121 Uses a more specific message if UUID are not supported. 2014-04-03 23:02:43 +02:00
Andrea Mazzoleni
44ef039a13 Different source organization. 2014-03-23 17:50:27 +01:00
Renamed from src/scan.c (Browse further)