Andrea Mazzoleni
ffe7f6fa57
Adds new files support.c/h for low level support functions.
2015-01-02 18:52:04 +01:00
Andrea Mazzoleni
8c98864395
Uses the OS random support instead of rand().
2014-12-27 11:56:55 +01:00
Andrea Mazzoleni
d9908487ea
Beautifies cmdline program.
2014-11-12 20:47:07 +01:00
Andrea Mazzoleni
87e6497665
Checks parity UUID before proceding.
2014-11-09 19:51:58 +01:00
Andrea Mazzoleni
af4ec2286f
Prints parity uuid in --gen-conf.
2014-11-09 19:37:25 +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
8ee1131bed
Refactors some mapping/find_disk uses.
2014-11-09 10:51:48 +01:00
Andrea Mazzoleni
4419801674
Merges parity info in a parity struct.
2014-11-09 10:32:00 +01:00
Andrea Mazzoleni
7054256c62
Ensures to test also the progress update.
2014-11-04 23:51:45 +01:00
Andrea Mazzoleni
88e53fd9a3
Removes count block info when reading/writing content file.
2014-11-01 16:53:11 +01:00
Andrea Mazzoleni
63f53a9274
Adds more info in the progress bar info for -G option.
2014-10-21 22:10:54 +02:00
Andrea Mazzoleni
447f1f1294
Makes fix to autodetect moved files and use them in recovering.
2014-10-19 22:25:30 +02:00
Andrea Mazzoleni
e17f12f26b
Changes the import command to use a new timestamp recognition.
...
This avoid the need of prehashing all the data, that could
be very slow.
2014-10-19 21:07:17 +02:00
Andrea Mazzoleni
c513af08ff
Ensures to call lstat_ex() only on regular files.
2014-10-01 21:44:35 +02:00
Andrea Mazzoleni
876bddcf4c
Beautifies the code.
2014-09-27 00:32:39 +02:00
Andrea Mazzoleni
0b372da80e
Updates the CPU usage using the last 100 seconds data.
2014-09-09 22:33:09 +02:00
Andrea Mazzoleni
b8e25228f4
Keeps a cumulative tick for all disk operations.
2014-09-09 22:22:46 +02:00
Andrea Mazzoleni
6f8cfd22fa
Gets speed and ETA stats using the last 100 seconds.
2014-09-09 22:15:50 +02:00
Andrea Mazzoleni
6700b928c2
Adds a new file_mode setting to control the file access mode.
2014-09-04 22:52:04 +02:00
Andrea Mazzoleni
6d4d75ad0b
Increases a little the code coverage in testing.
2014-09-01 20:04:56 +02:00
Andrea Mazzoleni
8912ebd76d
Removes warnings due possible mismatching integer sizes.
2014-07-11 18:40:08 +02:00
Andrea Mazzoleni
fb7ef9ec29
Logs when a SIGINT is received.
2014-06-29 10:53:40 +02:00
Andrea Mazzoleni
2652438f6d
More logging info for scrub and commandline.
2014-06-29 10:49:13 +02:00
Andrea Mazzoleni
35fb2085dc
Removes unused code.
2014-06-28 12:12:51 +02:00
Andrea Mazzoleni
3caa251d83
Adjusts some consistency messages.
2014-06-25 23:23:22 +02:00
Andrea Mazzoleni
6ec7d2aae5
Adds some consistency check when saving the new state.
...
We checks about consistency of the deleted and allocated
blocks to ensure that they don't overlap.
2014-06-25 23:18:04 +02:00
Andrea Mazzoleni
03fc05e93c
Removes the new .backup feature.
...
I'm not yet convinced that it's a good idea, because it may
end in unexpected errors if the old content file is used
as it's it.
2014-06-25 22:51:26 +02:00
Andrea Mazzoleni
5dfc67ec18
Keeps stats about usage time of disk and cpu.
2014-06-25 22:32:36 +02:00
Andrea Mazzoleni
ea49d5dd4b
No more "UUID set" message as misleading for empty disks.
2014-06-16 22:50:06 +02:00
Andrea Mazzoleni
c6a3742b40
Adds the new -F, --force-full option to force a full sync.
2014-06-15 19:01:07 +02:00
Andrea Mazzoleni
8c750d0039
Ensures that checked_read is really initialized.
2014-06-15 18:10:18 +02:00
Andrea Mazzoleni
c04ac21d43
Adds a new content check override.
2014-06-15 16:08:06 +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
da08ca4497
Makes a backup copy of the content file.
...
Before overwriting the existing content file, rename it
adding the .backup extension, but only if such content file
was read and validated.
2014-06-13 18:23:24 +02:00
Andrea Mazzoleni
224aaa4415
Suggests to use VolumeID if two disks have the same serial.
2014-06-05 23:31:40 +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
1063677959
Fixes reading of textual content file for REP blocks.
...
In the default case of using binary content files this bug has no effect.
2014-06-05 22:44:59 +02:00
Andrea Mazzoleni
f0cc9c9494
Prints the UUID if set for the first time.
2014-05-11 19:02:08 +02:00
Andrea Mazzoleni
23060095c9
Fixes some minor code issues found with coverity scan.
2014-05-09 22:07:07 +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