Commit graph

1631 commits

Author SHA1 Message Date
Andrea Mazzoleni
b86e06f415 Update to latest coverity scan 2016-10-29 08:07:11 +02:00
Andrea Mazzoleni
272853e40a Update to latest TommyDS 2016-10-26 23:23:05 +02:00
Andrea Mazzoleni
9b2c5514c0 Fix the return value of tommy_tree_insert()
It must be the object in the tree and not the passed one.
No bad conseguence because the value was used only for assertions,
and not for controlling the behaviour.
2016-10-26 22:58:28 +02:00
Andrea Mazzoleni
20e9f7de41 Ignore fadvise if it return ENOSYS
This happens in ARM platform because fadvise is
differently implemented by the kernel and glibc
may not support it yet.
2016-10-23 22:03:02 +02:00
Andrea Mazzoleni
72c558b104 Remove the unnecessary /dev/block support 2016-10-23 21:18:27 +02:00
Andrea Mazzoleni
4428a073da Remove dependency to /dev/block
We can read the same info directly from /sys/dev/block.
2016-10-23 21:16:58 +02:00
Andrea Mazzoleni
245879f726 When scanning for other devices, skip the ones not readable
This allow to work in some distributions with extraneous
devices that cannot be resolved.
One case is for Puppy with 8:0 not present in /dev/block.
2016-10-19 23:11:07 +02:00
Andrea Mazzoleni
dd16c4d32a Update TODO 2016-10-19 21:32:45 +02:00
Andrea Mazzoleni
9d5bd3846a Fix reading of disk capacity from smartctl
In Windows the separator can be a space.
Like: "User Capacity:    2 000 398 934 016 bytes"
2016-10-13 19:13:18 +02:00
Andrea Mazzoleni
a90f8db3c0 Ingnore the SMART Command Timeout for Seagate SMR disks 2016-10-13 18:57:14 +02:00
Andrea Mazzoleni
faa530e83e Allow to change the output format
The new test option allows to restore the past
behaviour, just in case...
2016-10-11 20:30:12 +02:00
Andrea Mazzoleni
97c01d35f4 Add basic support for ReFS
It works until the inode are 64 bit. Then it fails.
2016-10-05 08:38:22 +02:00
Andrea Mazzoleni
5f2f0a9fcd Update TODO 2016-10-05 00:29:31 +02:00
Andrea Mazzoleni
ba0184c37c Add a test option to skip the space holder 2016-10-05 00:12:29 +02:00
Andrea Mazzoleni
00cd931fad Add partial support for SCSI smart attributes
SCSI disks report information in a different way.
2016-10-05 00:12:26 +02:00
Andrea Mazzoleni
a61c415d39 Fix printing of outofparity message 2016-10-02 00:06:48 +02:00
Andrea Mazzoleni
b1fc75adab Make -F to not reallocate parity
This is now done by the new -R option.
2016-10-01 22:19:29 +02:00
Andrea Mazzoleni
eb039e8186 Print the outofparity explanation at the end
Otherwise it could scroll away.
2016-09-30 18:40:54 +02:00
Andrea Mazzoleni
51c60ebcdd Make the message of data accessed more clear 2016-09-30 18:38:29 +02:00
Andrea Mazzoleni
3bdc9b93ad Add additional checks on parity size
Ensures that it's always aligned at the block size.
Also adds more comments about resizing process.
2016-09-28 20:32:50 +02:00
Andrea Mazzoleni
422d642591 Check that the parity was fully allocated
We must check if any remaining size is left to be
allocated.
2016-09-28 18:55:50 +02:00
Andrea Mazzoleni
a4c813bf8d Update TODO 2016-09-26 21:17:36 +02:00
Andrea Mazzoleni
29fb2b22a2 Explain why errno is set to 0 2016-09-23 16:46:54 +02:00
Andrea Mazzoleni
f31dfada3e Update TODO 2016-09-11 13:51:28 +02:00
Andrea Mazzoleni
d8754eeb94 Update HISTORY 2016-09-09 20:55:10 +02:00
Andrea Mazzoleni
7d65eb83b1 Improve the discard-window write strategy
Now flush the window before discarding it in the previous
loop, following exactly the Linus advices.
2016-09-09 19:52:39 +02:00
Andrea Mazzoleni
b5e5a0791b Fix a typo in a comment 2016-09-06 21:11:15 +02:00
Andrea Mazzoleni
6e1e66aaa3 Update TODO 2016-09-06 20:58:13 +02:00
Andrea Mazzoleni
85df40f40d Clarify about the space holder for Windows
In Windows we keep 256 MB to avoid warnings.
2016-08-31 22:26:17 +02:00
Andrea Mazzoleni
13aaa949a2 Update TODO 2016-08-28 09:58:01 +02:00
Andrea Mazzoleni
1be2b44f5f Update TODO 2016-07-31 12:07:37 +02:00
Andrea Mazzoleni
5911da55c0 In Windows leave 256 MB of free space in the parity disk
This is done to avoid the annoying warning message of
disk full.
2016-07-27 23:06:59 +02:00
Andrea Mazzoleni
6637d712a3 Remove unneded assignment
It confuses static analyzers.
2016-07-26 21:08:42 +02:00
Andrea Mazzoleni
00e1ca5997 Enforce a check on the content parity level
This to avoid that damaged files cause a crash.
2016-07-26 20:56:21 +02:00
Andrea Mazzoleni
0b4aee793a Avoid to close invalid handle
This could happen if open() return -1.
2016-07-26 20:51:20 +02:00
Andrea Mazzoleni
ef6958b410 No way to fix the wrong aligment
The only possibility is to regenerate parity.
2016-07-26 19:34:48 +02:00
Andrea Mazzoleni
2b31d23a10 Fix incorrect split size
This fixes invalid size stored in the content file
generated by previous bad BETA versions.
2016-07-25 22:23:32 +02:00
Andrea Mazzoleni
501b1d7983 Avoid extra allocation in parity file
After growing the parity file, call an extra ftruncate()
to ensure to cut the file to the exact size, removing any extra
allocation that could result by failed attempts to grow it.
Note that how fallocate() behaves on failures is not really
specified, so it's possible that extra space is allocated.
2016-07-25 21:58:20 +02:00
Andrea Mazzoleni
56c129f825 Remove compiler warnings in Windows 2016-06-30 21:17:44 +02:00
Andrea Mazzoleni
be7fd4888a Allow to add and remove new parity split
We now assume correct the input from the configuration
and the content file is adapted to it, but only if it's
without losing info.
2016-06-26 00:13:20 +02:00
Andrea Mazzoleni
abe5a6984a Update HISTORY 2016-06-22 21:04:52 +02:00
Andrea Mazzoleni
87529baca4 Print the probability of failure in the log
It's just after the ":afr:" tag.
2016-05-30 22:44:58 +02:00
Andrea Mazzoleni
b3cc9192cd Don't print disk dir in info 2016-05-29 19:23:42 +02:00
Andrea Mazzoleni
dd87022490 Remove unnecessary prefix char in escaping
We can encode it at higher level.
2016-05-29 18:23:43 +02:00
Andrea Mazzoleni
256db0e595 Rename internal esc/quote functions
No functional change
2016-05-29 18:19:32 +02:00
Andrea Mazzoleni
20cd1f86f8 Fix typos in comments
No functional change.
2016-05-23 22:37:18 +02:00
Andrea Mazzoleni
cdc0a1cd93 Rename chunk to extent
No functional change.
2016-05-23 22:10:05 +02:00
Andrea Mazzoleni
46197d986d Fix some typos in the manual 2016-05-19 23:38:13 +02:00
Andrea Mazzoleni
cd3bcb8cc5 Update HISTORY 2016-05-19 23:10:16 +02:00
Andrea Mazzoleni
7b0e22253d Update TODO 2016-05-19 23:10:10 +02:00