Commit graph

1646 commits

Author SHA1 Message Date
Andrea Mazzoleni
5bcc7e35a5 Update TODO 2016-11-07 20:20:39 +01:00
Andrea Mazzoleni
31a8dc9a13 Comply wih the autoconf manual about SYSCONFDIR
The manual says to allow to configure the dirs when calling
make, meaning that we cannot expand them in configure.ac.
Note that we use additional quoting to allow dirs with spaces
in the gcc command line.
This is done for the Window port of SnapRAID.
2016-11-07 19:11:32 +01:00
James Sanderson
ee1aa840f1 Respect sysconfdir for configuration file location
The sysconfdir is used if it exists, otherwise it fallbacks
to the previous default /etc.
2016-11-06 22:12:49 +01:00
Andrea Mazzoleni
8f625f2be4 Update TODO 2016-11-06 20:41:34 +01:00
Andrea Mazzoleni
cb84c61d07 Extend the coverage test 2016-11-06 20:23:11 +01:00
Andrea Mazzoleni
4d5d1d9947 Update coverity and clang to latest version 2016-11-06 18:09:57 +01:00
Andrea Mazzoleni
dd32095970 Avoid clang to report unused options as warning
Otherwise this conflicts with the -Werror flag
2016-11-06 17:00:17 +01:00
Andrea Mazzoleni
5c5f44e2a0 Remove build warnings in Mac OS X 2016-11-06 16:29:19 +01:00
Andrea Mazzoleni
236e2953ce Build on Travis with warning as error 2016-11-06 16:18:47 +01:00
Andrea Mazzoleni
6f16cddd5b Rename string functions to avoid variable shadow 2016-11-06 16:06:26 +01:00
Andrea Mazzoleni
8de78a8b9f Use portable format specified for printf
Otherwise they raise a warning when building for x64.
2016-11-06 15:52:14 +01:00
Andrea Mazzoleni
e58621dada Remove the now unused tommy_arrayblk 2016-11-03 18:43:37 +01:00
Andrea Mazzoleni
18f89c1a56 Update to TommyDS v2.1 2016-11-03 18:33:12 +01:00
Chad Sheets
4c6eb5b3a8 Fix inconsistent format example
The new format is 'data'.
2016-11-02 21:38:54 +01:00
Andrea Mazzoleni
d65450dda8 Don't allow ENOSYS for fadvise(DONT_NEED)
We want to know if it's failing. In case, a different
advise method has to be used.
2016-10-29 08:08:52 +02:00
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