Commit graph

42 commits

Author SHA1 Message Date
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
0cffb46050 Fixes some error conditions reported by clang. 2013-06-18 21:13:36 +02:00
Andrea Mazzoleni
5c0b7d2e6c Better handling of return value in handle_create(). 2013-06-01 22:49:38 +02:00
Andrea Mazzoleni
d5c1843ba6 Deletes create file if the fix process is aborted. 2013-04-28 19:01:36 +02:00
Andrea Mazzoleni
aeb167bb16 Adds --test-skip-sequential to disable the sequential hint for the disk cache. 2013-04-04 22:52:56 +02:00
Andrea Mazzoleni
a85aa08276 Prints also the Windows GetLastError() in strerror(). 2013-04-04 19:30:24 +02:00
Andrea Mazzoleni
f5986f24a1 Fixes a typo in comment. 2013-03-03 14:16:46 +01:00
Andrea Mazzoleni
10db41c732 Fixes compilation in Windows. 2013-03-01 20:17:41 +01:00
Andrea Mazzoleni
0200a2b7fa Adds a new -l, --log option. 2013-03-01 20:13:56 +01:00
Andrea Mazzoleni
a1e7786dd5 Moves handle_ancestor() to mkancestor() to be a generic function. 2013-02-20 13:29:58 +01:00
Andrea Mazzoleni
2d6528fe90 If O_NOATIME use fails with EPERM, retry without it. 2012-11-04 00:26:30 +01:00
Andrea Mazzoleni
db6ff47062 Uses O_NOATIME if possible. 2012-11-03 23:57:12 +01:00
Andrea Mazzoleni
06637e9264 Uses futimesat in Solaris. 2012-10-07 21:12:03 +02:00
Andrea Mazzoleni
3c598b28cc Compiles with optional nanoseconds supports. 2012-09-19 21:52:15 +02:00
Andrea Mazzoleni
71c7f4dffb More precise file modification time, now using nanoseconds. 2012-07-10 23:24:31 +02:00
Andrea Mazzoleni
53124d3484 Adds support for short read requests. This is a permitted behaviour for filesystems. 2012-03-13 19:11:09 +01:00
Andrea Mazzoleni
c4263a4193 With posix_fadivse the error is the return value and not errno. 2012-01-21 20:52:37 +01:00
Andrea Mazzoleni
164c86d0e8 Some minor changes. 2011-10-31 09:41:12 +01:00
Andrea Mazzoleni
1dbd801dcb Better performance in fix keeping track of which part of the files is not initialized. 2011-10-09 07:51:25 +02:00
Andrea Mazzoleni
59c7c7380c Prints more error information in case of some errors. 2011-10-08 10:32:17 +02:00
Andrea Mazzoleni
4adef9dc17 Saves the disk mapping inside the content file. 2011-10-01 19:18:32 +02:00
Andrea Mazzoleni
99515f610c Separates the disk array in a disk list and a handle mapping vector. 2011-09-23 21:48:50 +02:00
Andrea Mazzoleni
1ed3d59c02 Some error messages changes. 2011-09-03 11:01:12 +02:00
Andrea Mazzoleni
66e9c359fd Restores the modification time of files in fixing. 2011-08-31 23:33:43 +02:00
Andrea Mazzoleni
e6b02b7d2d Merges handle_close_if_different() with handle_close(). 2011-08-27 15:19:19 +02:00
Andrea Mazzoleni
399f181a57 Initial support for symlinks. Only in *nix. 2011-08-26 14:18:38 +02:00
Andrea Mazzoleni
b299f9d368 Uses the NOFOLLOW option in open() to ensure to do not follow symbolic links. 2011-08-25 18:41:27 +02:00
Andrea Mazzoleni
8b3075a023 More consistent in error reporting for files with garbage at the end. 2011-06-12 14:18:36 +02:00
Andrea Mazzoleni
f8d2c91a96 Changes the way files without read or write permission are handled.
Now we try to continue processing returning a warning where possible.
2011-06-11 09:38:19 +02:00
Andrea Mazzoleni
10511499aa Uses PRIu64 to print 64 bit integers. 2011-04-29 22:37:40 +02:00
Andrea Mazzoleni
a9255683f4 Fixes a bug in check when detecting garbage data over the expected end of a file.
More extensive tests to detect the append/truncate conditions.
2011-04-28 21:38:25 +02:00
Andrea Mazzoleni
eb26b6aa1f Uses O_SEQUENTIAL in Windows. 2011-04-26 19:15:36 +02:00
Andrea Mazzoleni
08831c6641 Initial RAID6 support. Not yet complete.
Uses Murmur3 as default hash.
Check now returns and error even if only recoverable errors are present.
2011-04-23 21:38:26 +02:00
Andrea Mazzoleni
a5aa964f8f Removes some conversion warnings. 2011-03-30 17:13:42 +02:00
Andrea Mazzoleni
637789d11b Some comments about the use of posix_advise(). 2011-03-29 18:27:25 +02:00
Andrea Mazzoleni
d24df4257e Adds initial readahead support. 2011-03-23 19:22:56 +01:00
Andrea Mazzoleni
0d70e7cd6a Creates missing directories when fixing. 2011-03-22 23:20:12 +01:00
Andrea Mazzoleni
e80009334b Even better error management. More precise and explicative. 2011-03-19 22:00:08 +01:00
Andrea Mazzoleni
f443a7f089 Better error management 2011-03-18 22:38:11 +01:00
Andrea Mazzoleni
b9b8fd0bb8 Adds filter exclusion.
Some refactoring.
2011-03-16 23:52:10 +01:00
Andrea Mazzoleni
496971e9c9 Address some portability issues 2011-03-12 10:09:59 +01:00
Andrea Mazzoleni
4bd4f9dd79 Add the fix command
Split in various files
Add --force switch
Add --start switch
2011-03-04 20:59:21 +01:00