Commit graph

484 commits

Author SHA1 Message Date
Andrea Mazzoleni
f564e9b91a Preliminary support for multiple parity files
This allows to split parity in different partitions.
2016-05-15 14:27:33 +02:00
Andrea Mazzoleni
1ce7b61f29 Convert null devices as first operation
This ensure that all the usages are with the
real device number.
Also avoid to resolve device in spinup to suppor
filesystem that cannot be resolved, like ZFS.
2016-04-29 20:53:01 +02:00
Andrea Mazzoleni
a0307ca29d Detect device also from the major:minor of the mount point
This is required for btrfs in new distributions, because
the major:minor reported in /proc/self/mountinfo doesn't
match the one of the mount point.
2016-04-28 22:27:57 +02:00
Andrea Mazzoleni
6053096862 Extend the split function to support multiple delimiters 2016-04-26 21:26:15 +02:00
Andrea Mazzoleni
4cc1109444 Add support for null device numbers
They are resolved using the mountinfo interface and
mapping them to the block device listed there.
2016-04-23 16:24:26 +02:00
Andrea Mazzoleni
cca81e7ff6 Fix some typos in comments 2016-04-20 22:12:16 +02:00
Andrea Mazzoleni
e760df8877 Reset all fields of the Windows overlapped struct
To be 100% compliant with MSDN.
2016-04-10 23:01:42 +02:00
Andrea Mazzoleni
e77c3742ac Small clearification comment 2016-04-10 22:56:28 +02:00
Andrea Mazzoleni
36a4d24333 Source code beautification
Done with uncrustify.
2016-04-10 22:46:09 +02:00
Andrea Mazzoleni
5bf030c793 Disable some operations affected by hash collision
This only if we are working with a reduced hash length.
2016-04-10 19:13:08 +02:00
Andrea Mazzoleni
ab7d4e896c Support a configurable hash size 2016-04-07 22:37:11 +02:00
Andrea Mazzoleni
5b06549ee3 Make the hash size configurable
Only at source code level.
2016-04-07 21:39:02 +02:00
Andrea Mazzoleni
8e2cb48ea7 Add alternatives for RtlGenRandom 2016-04-01 22:12:47 +02:00
Andrea Mazzoleni
8d3cefb302 Allow compilation without pthread support 2016-03-18 18:45:35 +01:00
Andrea Mazzoleni
fe3ad31cbb Allow to disable the multithread mode
Use the --test-io-cache=1 option to use a special
monothread mode.
2016-03-18 18:33:11 +01:00
Andrea Mazzoleni
8fbd8b35ea Add support for escaping in Windows with the '^' char 2016-03-05 12:05:11 +01:00
Andrea Mazzoleni
ecff017ffe Log more information during UUID detection 2016-03-01 23:29:46 +01:00
Andrea Mazzoleni
62e4b7e14c Clearer blkid message about package to install 2016-03-01 22:16:19 +01:00
Andrea Mazzoleni
7992ca1a77 Extend the diff manual and reorder the final summary 2016-02-14 10:37:44 +01:00
Andrea Mazzoleni
0f640fa2d2 Fix a typo in option name 2016-02-14 09:39:32 +01:00
Andrea Mazzoleni
93f25c4bc4 Rename the io->mutex variable to io->io_mutex
This simplifies text search for mutexes.
2016-02-13 16:05:20 +01:00
Andrea Mazzoleni
0707b1f446 Error check all the thread operations
No error is expected, and this enforces that expectation.
2016-02-13 16:05:19 +01:00
Andrea Mazzoleni
3c6a7bac3e Make the conditional variable signaling configurable at runtime
This allows to verify if the signaling outside the mutex gives
any performance improvment.
2016-02-13 16:05:19 +01:00
Andrea Mazzoleni
86eaf8190f Use the native Windows thread support instead of pthread 2016-02-13 16:05:16 +01:00
Andrea Mazzoleni
42330c05b6 In Windows use the safe signaling
This mostly to detect possible problems in the Windows pthread implementation
2016-02-12 19:10:01 +01:00
Andrea Mazzoleni
840ec7b1c3 Use precise quoting for the shell commands 2016-02-10 21:30:54 +01:00
Andrea Mazzoleni
12b30c198e Use a thread-safe esc() function with a local buffer 2016-02-09 23:12:33 +01:00
Andrea Mazzoleni
a37d3439b4 Restore the -D, --force-device option to ignore the same device error 2016-02-09 19:20:24 +01:00
Andrea Mazzoleni
29ed19174f Cleanup pthread usage
No functional change.
2016-02-06 15:08:11 +01:00
Andrea Mazzoleni
104f8b065e Be more explicit if smart/down is not supported 2016-02-06 10:24:29 +01:00
Andrea Mazzoleni
94bfe2e4ae Clarify graph legend 2016-02-05 20:20:15 +01:00
Andrea Mazzoleni
c2079947e5 Remove a false positive warning for Coverity Scan
It cannot see that if file is != 0 and handle->file == file,
also handle->file is != 0.
2016-02-03 19:58:54 +01:00
Andrea Mazzoleni
4cfe733302 Fix the 'touch' command in Windows 2016-02-02 18:55:47 +01:00
Andrea Mazzoleni
6e48ca8cd1 Output stats only when they are computed 2016-02-02 08:19:09 +01:00
Andrea Mazzoleni
62a760a42b Change two wrong block_off_t types 2016-01-31 18:58:02 +01:00
Andrea Mazzoleni
4a418e158a Add time stats also for thread scheduling 2016-01-31 18:08:39 +01:00
Andrea Mazzoleni
3040099e48 Optimizes console writes for Windows 2016-01-30 09:17:30 +01:00
Andrea Mazzoleni
6da3469fe7 When clearing the screen move the cursor to the top 2016-01-30 09:17:10 +01:00
Andrea Mazzoleni
bf1f7dda7c Avoid warnings for printf usage without format 2016-01-28 19:32:31 +01:00
Andrea Mazzoleni
895eb6b36c Add the new --test-io-stats to show graphs, and reformat them 2016-01-27 22:26:25 +01:00
Andrea Mazzoleni
34d02d4b41 Group print functions 2016-01-27 22:25:02 +01:00
Andrea Mazzoleni
11a8e301f4 Clear the screen before printing stats 2016-01-27 22:24:59 +01:00
Andrea Mazzoleni
252d613eae Print stats of the number of cached blocks 2016-01-27 20:37:31 +01:00
Andrea Mazzoleni
5f8fd36b45 Use progress values for the usage graph 2016-01-27 18:19:31 +01:00
Andrea Mazzoleni
489613097c In the usage vector store also the latest measure
This reduces the number of past measure by one.
2016-01-26 23:57:30 +01:00
Andrea Mazzoleni
846c02e2c1 Preliminary usage graph 2016-01-26 23:47:59 +01:00
Andrea Mazzoleni
6f004d13ce Allow -d, --disk in 'up' and 'down' 2016-01-23 15:31:30 +01:00
Andrea Mazzoleni
affc60e256 Allocate only the minimal necessary waiting vector
This is more clear to understand.
2016-01-21 18:52:45 +01:00
Andrea Mazzoleni
377352e64f Default to 8 MiB of blocks for the IO cache 2016-01-20 22:03:14 +01:00
Andrea Mazzoleni
e2c4399e28 More precise disk usage time
When we wait, we now count the time for all the waiting disks,
and not only for the first one that finish.
2016-01-20 21:30:00 +01:00