Commit graph

568 commits

Author SHA1 Message Date
Andrea Mazzoleni
54015a2df8 Add some more logging in case of failure of parity resize 2017-11-24 23:02:45 +01:00
Andrea Mazzoleni
68563650c9 Use fallocate() with an offset starting at the missing data
This works better with Btrfs.
2017-11-24 23:02:41 +01:00
Andrea Mazzoleni
701b0e67e1 Change the default advise mode to "discard"
This avoids to swap out other process memory.
2017-11-24 22:17:28 +01:00
Andrea Mazzoleni
b9740e06f4 Print filenames in the stats screen 2017-11-24 22:17:24 +01:00
Andrea Mazzoleni
5f716773ab One more litte test for Tommy
Just to increase the code coverage.
2017-11-06 21:49:18 +01:00
Andrea Mazzoleni
713a8138c0 Minor formatting changes 2017-11-03 23:46:45 +01:00
Andrea Mazzoleni
8295788686 Don't check SMART attribute 188 for all Seagate disks
Also IronWolf disks, like Archive don't report reliable values.
2017-11-02 10:49:12 +01:00
Andrea Mazzoleni
f778fb691f Apply new hardlink behaviour also to NTFS in nix platforms
This is a specific NTFS behaviour, not limited to Windows.
2017-10-29 18:43:53 +01:00
Andrea Mazzoleni
2a8f963707 Fix recognition of Windows hardlinks
In Windows hardlinks may have different time and size attributes
reported by FindFirst. This is persistent until the link is opened.
2017-10-27 22:59:14 +02:00
Andrea Mazzoleni
61a1e7a7e6 Use casting when printing value that may be of a different type
The stat struct could use whatever type for st_* fields.
2017-10-27 22:54:42 +02:00
Andrea Mazzoleni
33a9bde7bb Improve the pool command
The links are written only if they need to be updated.
2017-09-24 19:00:58 +02:00
Andrea Mazzoleni
5f137fae9a Print a warning about content files in the same disk 2017-09-17 18:44:33 +02:00
Andrea Mazzoleni
74d689b149 Fix symlink time set in Windows
The link as to be opened with write permission for attributes.
2017-05-13 13:37:38 +02:00
Andrea Mazzoleni
e7d93f7f42 Better backward compatibility in symlink creation
The new flag may result in ERROR_INVALID_PARAMETER in old Windows.
2017-05-13 13:23:41 +02:00
Andrea Mazzoleni
0ca3496891 Sanitize the high performance counter in Windows
This avoids to report bad stats.
2017-05-01 16:07:07 +02:00
Andrea Mazzoleni
17bec43be2 Set time of pool links
This avoid index refresh from various applications.
2017-05-01 16:07:04 +02:00
Andrea Mazzoleni
905aaa399b Print more information when failing to dereference a null device 2017-03-26 19:22:58 +02:00
Andrea Mazzoleni
761ede567a Fix check to ignore unused parity blocks 2017-03-26 18:38:52 +02:00
Andrea Mazzoleni
47b571790a Allow adding new splits when using content file with 'P' command 2017-03-26 12:02:18 +02:00
Andrea Mazzoleni
1681f7c9c7 Fix quoting in Linux
We cannot quote UTF-8 chars.
2017-02-24 22:26:35 +01:00
Andrea Mazzoleni
ebd2ef6220 Fix a typo in comment 2017-02-05 11:43:21 +01:00
Andrea Mazzoleni
0ed1d0afed Recognize the correct "hashsize" field in the configuration
The wrong "hash_size" is still supported for backward compatibility.
2017-01-09 18:51:05 +01:00
Andrea Mazzoleni
04dfeea107 Tentative fix for major/minor missing 2017-01-04 00:44:20 +01:00
Andrea Mazzoleni
e650029141 Ensure to overwrite the latest status line 2016-12-22 15:51:25 +01:00
Andrea Mazzoleni
faa3ca9bf8 In Windows 10 allow creation of symlinks by unpriviliged user
It's a new feature of Windows 10 build 14972
2016-12-06 08:36:19 +01:00
Andrea Mazzoleni
d5308f4a59 Explain because log_fatal() is used 2016-12-05 18:46:32 +01:00
Andrea Mazzoleni
bb3a4a54a1 When printing the diff bits, also tell how many in total 2016-11-27 20:57:22 +01:00
Andrea Mazzoleni
475bcf17f8 Clarify the message about the conseguence of missing UUID
This should be less scary to users.
2016-11-14 20:29:27 +01:00
Andrea Mazzoleni
ac3714aa8a Fix some potential alignment issues
In ARM platforms we need data aligned for direct
access. Use special tricks to access unaligned one.
2016-11-09 19:43:52 +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
cb84c61d07 Extend the coverage test 2016-11-06 20:23:11 +01:00
Andrea Mazzoleni
5c5f44e2a0 Remove build warnings in Mac OS X 2016-11-06 16:29:19 +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
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
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
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