Commit graph

297 commits

Author SHA1 Message Date
Andrea Mazzoleni
23983d6e9c Drop text file support 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
49bcad5448 Extend the -h option to check also copied/moved files 2015-09-29 22:31:13 +02:00
Andrea Mazzoleni
254db2cdbf Fix a typo in a comment 2015-09-27 15:33:54 +02:00
Andrea Mazzoleni
2555248645 Extend the -p option with bad/sync/full arguments 2015-09-13 15:48:05 +02:00
Andrea Mazzoleni
a7c4f082b3 Use size_t where appropriate 2015-09-13 15:36:36 +02:00
Andrea Mazzoleni
8bc16009bd Fix build issue due wrong declaration 2015-09-13 11:41:49 +02:00
Andrea Mazzoleni
3bf691ff7d On data error, prints the number of different bits 2015-09-12 15:19:52 +02:00
Andrea Mazzoleni
167d1edfec Add some missing log_tag() when opening files 2015-09-02 19:44:48 +02:00
Andrea Mazzoleni
0c9f5f8326 Use a different approach when dealing with badblock filtering
This allows to postprocess files setting the right time on them.
2015-09-02 19:37:24 +02:00
Andrea Mazzoleni
fb3d0fbe70 Add some missing log_tag() when closing files 2015-09-02 19:29:35 +02:00
Andrea Mazzoleni
527b798094 Add an additional crc check in mkstream 2015-08-31 22:45:10 +02:00
Andrea Mazzoleni
0ba25d5304 Fix an invalid assumption when using the -e option
With -e we cannot postprocess files as we don't have any guarantee
to fully process them, as the select blocks cover likely only
a subset of the file.
2015-08-31 22:01:34 +02:00
Andrea Mazzoleni
cca2cbb23f Scrub first the just synced blocks 2015-08-27 18:58:25 +02:00
Andrea Mazzoleni
9a5f30cd32 Add a new justsynced info bit to position
The value 0 means that the block is scrubbed, and it allows
an easy conversion of past content files.
Note that past versions ignore this info when using binary
content files, then we don't increase the version of the format.
2015-08-27 18:02:12 +02:00
Andrea Mazzoleni
77117b1cd5 Add some more warning checks, and fix the ones reported 2015-08-05 09:42:11 +02:00
Andrea Mazzoleni
d493277ea1 Reject invalid filter specifications 2015-08-03 19:31:07 +02:00
Andrea Mazzoleni
ebe3b06228 Customize message for mount point not accessible 2015-06-23 21:39:18 +02:00
Andrea Mazzoleni
d7ce033933 Rename some error tag adding the missing underscore
This makes the tags consistent with others.
2015-06-23 21:37:51 +02:00
Andrea Mazzoleni
6a19a3d3e2 Fix a typo in the status command 2015-06-11 19:16:50 +02:00
Andrea Mazzoleni
aef11798b0 Clarify why filters could be rejected with a proper message 2015-05-30 13:18:16 +02:00
Andrea Mazzoleni
8efa1ddfca Cleanup of hash functions 2015-05-10 17:17:42 +02:00
Andrea Mazzoleni
41a3692430 Print more details in search/import if a file disappears 2015-05-05 22:09:46 +02:00
Andrea Mazzoleni
246c1d3b72 Be more specific in the empty message 2015-04-30 22:05:53 +02:00
Andrea Mazzoleni
ff28bc711c Recompute the SMART 193 table using a limit of 98%
This avoid to compute a very high failure rate for
very high values of the 193 attribute.
2015-04-30 21:43:01 +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
e17190fce4 Fix build in generic Unix due missing dev_resolve() 2015-04-28 19:02:28 +02:00
Andrea Mazzoleni
0a46ac605a Remove a clang warning about file var being potentially 0 2015-04-21 21:33:39 +02:00
Andrea Mazzoleni
de0c437bd2 Put a clear separation between log and msg functions 2015-04-20 22:07:42 +02:00
Andrea Mazzoleni
966abd6f16 Don't print free space in "status" if the info is not available 2015-04-20 20:57:10 +02:00
Andrea Mazzoleni
adbc74f862 Suppress missing file warnings if -m is specified 2015-04-19 21:21:49 +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
2e248b42ae Change the scrub error msg if there are too many errors 2015-04-19 21:10:58 +02:00
Andrea Mazzoleni
6c91927803 In "devices" command format the disk serial as 8 hex digits in Windows 2015-04-14 20:49:03 +02:00
Andrea Mazzoleni
f0fc3a8889 Some more change at smart log 2015-04-12 20:57:48 +02:00
Andrea Mazzoleni
c34e3875e0 Minor change in log format 2015-04-11 22:59:58 +02:00
Andrea Mazzoleni
db3c417481 Log all the smartctl output 2015-04-11 07:43:12 +02:00
Andrea Mazzoleni
258ab45eef Add missing lock in msg_tag() call 2015-04-11 07:10:11 +02:00
Andrea Mazzoleni
69c80d0460 Change some output strings for "smart" command 2015-04-10 22:26:06 +02:00
Andrea Mazzoleni
8334ddc7c1 Log also the the SMART FLAGS returned by smartctl 2015-04-10 18:34:16 +02:00
Andrea Mazzoleni
827eb2117e Remove the 0x usage in log files 2015-04-10 18:30:06 +02:00
Andrea Mazzoleni
4af4504515 Validate the smartctl string before accepting it 2015-04-10 18:29:06 +02:00
Andrea Mazzoleni
0477ed36c6 Add lock protection at the output in all platforms 2015-04-09 21:22:14 +02:00
Andrea Mazzoleni
57b7d0be95 Drop hdparm use replaced by smartctl even for "down" command 2015-04-09 21:16:06 +02:00
Andrea Mazzoleni
228ca866e2 Fix a missed initialization of the new smartctl variable 2015-04-08 23:10:43 +02:00
Andrea Mazzoleni
214070dc4d Add support for a new "smartctl" config option
This option allows to configure custom smartctl
commands for devices that cannot be autodetected.
2015-04-08 22:56:44 +02:00
Andrea Mazzoleni
024b3f80fa Print failure rate also without rotation rate 2015-04-08 18:13:24 +02:00
Andrea Mazzoleni
1613ca1c86 Remove dependency to SMART 199 attribute
This is in general not an indication of disk failure,
but only a problem in communication with the controller.
After fixing that problem, the errors disappear, but the counter
cannot be zeroed.
2015-04-08 17:30:34 +02:00
Andrea Mazzoleni
9a10c94946 Retry smartctl command in Windows with -d sat if no info 2015-04-07 21:59:09 +02:00
Andrea Mazzoleni
bb76d48ace Update SMART 188 table after masking to 16 bit also on generation 2015-04-06 22:30:20 +02:00