Commit graph

88 commits

Author SHA1 Message Date
Andrea Mazzoleni
12d6084fce Simplifies some common subexpressions.
No functional change.
2014-10-14 21:37:28 +02:00
Andrea Mazzoleni
3e2d805d08 Extends the status command to show free space. 2014-10-13 23:47:25 +02:00
Andrea Mazzoleni
4886a5d13f Gives a hint about filled disks in parity write error. 2014-10-12 10:50:48 +02:00
Andrea Mazzoleni
4a09094f60 Reports also numeric errno in Windows. 2014-10-12 10:50:33 +02:00
Andrea Mazzoleni
21a88175d5 Uses an external GetFilePhysicalOffset to make code clear. 2014-10-04 18:05:50 +02:00
Andrea Mazzoleni
a76aa1dd0b Removes now unnecessary Mapping message. 2014-10-04 16:43:11 +02:00
Andrea Mazzoleni
ca5e635aa1 In Windows ensures to use synced information for new files.
Keeps track of the sync state of info with a new st_sync field
in the stat struct.
2014-10-04 10:27:23 +02:00
Andrea Mazzoleni
a0c6965959 Reads the physical offset only for new files. 2014-10-03 21:28:56 +02:00
Andrea Mazzoleni
0f05d40f25 Adds the --test-force-scan-winfind option to use the legacy dir listing. 2014-10-03 21:24:19 +02:00
Andrea Mazzoleni
c513af08ff Ensures to call lstat_ex() only on regular files. 2014-10-01 21:44:35 +02:00
Andrea Mazzoleni
f117074004 Uses Windows dir stream to make dir listing faster. 2014-09-30 21:54:49 +02:00
Andrea Mazzoleni
09aaccc9e9 Uses an extended error report for FlushFileBuffers().
This is at now safer than ignoring the INVALID_HANDLE error.
2014-09-29 19:14:57 +02:00
Andrea Mazzoleni
876bddcf4c Beautifies the code. 2014-09-27 00:32:39 +02:00
Andrea Mazzoleni
0583799ad0 Avoids fake identation. 2014-09-27 00:23:05 +02:00
Andrea Mazzoleni
d84babb6bd Updates with latest tommyds library. 2014-09-26 23:50:01 +02:00
Andrea Mazzoleni
eeea58b42a Handles special errors from FlushFileBuffers() for Windows. 2014-09-26 22:59:07 +02:00
Andrea Mazzoleni
0433033c12 Uses an explicit fsync() in Windows.
This should allow a more precise error detection.
2014-09-24 22:25:35 +02:00
Andrea Mazzoleni
605e7da478 Adjusts a comment to make it more clear. 2014-09-21 22:27:56 +02:00
Andrea Mazzoleni
5dc4365394 Removes some clang warnings. 2014-09-17 21:49:37 +02:00
Andrea Mazzoleni
4ce85be912 Fixes indentation of speed results. 2014-09-17 21:34:00 +02:00
Andrea Mazzoleni
4e419aa862 Extends tests to use AVX2 functions. 2014-09-16 21:58:29 +02:00
Andrea Mazzoleni
0e3901ca3e Adds gen3/z support for AVX2. 2014-09-15 22:31:25 +02:00
Andrea Mazzoleni
8e97b7a248 Adds proper detection for AVX2. 2014-09-14 19:47:43 +02:00
Andrea Mazzoleni
957db46f5b Preliminary AVX2 support. 2014-09-14 18:03:40 +02:00
Andrea Mazzoleni
b32e3cdc03 Reports in speed test if the CPU has a slow access to extended regs. 2014-09-14 16:53:42 +02:00
Andrea Mazzoleni
0b372da80e Updates the CPU usage using the last 100 seconds data. 2014-09-09 22:33:09 +02:00
Andrea Mazzoleni
b8e25228f4 Keeps a cumulative tick for all disk operations. 2014-09-09 22:22:46 +02:00
Andrea Mazzoleni
6f8cfd22fa Gets speed and ETA stats using the last 100 seconds. 2014-09-09 22:15:50 +02:00
Andrea Mazzoleni
3db0c5e967 Prints time stat also in dry. 2014-09-08 21:24:11 +02:00
Andrea Mazzoleni
4adcf7c5cc Prints time stats also in scrub. 2014-09-08 21:18:11 +02:00
Andrea Mazzoleni
6700b928c2 Adds a new file_mode setting to control the file access mode. 2014-09-04 22:52:04 +02:00
Andrea Mazzoleni
d75baef775 Fixes a typo in the cmdline help. 2014-09-03 22:50:47 +02:00
Andrea Mazzoleni
6d4d75ad0b Increases a little the code coverage in testing. 2014-09-01 20:04:56 +02:00
Andrea Mazzoleni
1cd6c1ddde Uses a fixed size element for info.
Mostly for precaution. No real change in all supported platforms.
2014-08-31 17:51:06 +02:00
Andrea Mazzoleni
0c65dbbb48 Adds cmalloc() wrapper. 2014-08-31 17:50:39 +02:00
Andrea Mazzoleni
43d81d52a9 Prints more info in low memory error. 2014-08-02 10:30:51 +02:00
Andrea Mazzoleni
eb5b8da65c Adds a missing cpu time call.
Not really relevant, just for completeness.
2014-08-02 10:15:23 +02:00
Andrea Mazzoleni
42105f90b2 Uses the portable to Windows ftruncate(). 2014-07-14 20:18:47 +02:00
Andrea Mazzoleni
c8df7d4a07 More efficient test avoiding rewrite. 2014-07-14 08:24:23 +02:00
Andrea Mazzoleni
ea4eafb60d Fixes the Windows regression test. 2014-07-11 23:33:19 +02:00
Andrea Mazzoleni
71ff0620ce Sort the dir alphabetically if explicitely requested.
This ensures that the test is independent of the directory order
of the files.
2014-07-11 19:59:01 +02:00
Andrea Mazzoleni
6c88c44970 Reworks the test implementation. 2014-07-11 19:57:58 +02:00
Andrea Mazzoleni
e4a4e20e8c Ensures to always write not zero data in the regression test. 2014-07-11 18:49:22 +02:00
Andrea Mazzoleni
2a6ad5d1ff Avoids possible division by zero in the regression test. 2014-07-11 18:48:49 +02:00
Andrea Mazzoleni
8912ebd76d Removes warnings due possible mismatching integer sizes. 2014-07-11 18:40:08 +02:00
Andrea Mazzoleni
12f77ed778 Fixes build in OS X. 2014-07-11 18:39:45 +02:00
Andrea Mazzoleni
5ed1c7275f Fixes a memory leak in mktest. 2014-07-03 21:51:16 +02:00
Andrea Mazzoleni
98e1f66baa Uses a precise counting in scrub.
Now the exact number of blocks is scrubbed regardless
the time organization of the blocks.
2014-07-02 23:02:49 +02:00
Andrea Mazzoleni
b3d8092c08 Clearifies some comments. 2014-07-01 22:56:18 +02:00
Andrea Mazzoleni
7efd5b6f83 Ensures that the "datage" command writes always different data. 2014-07-01 22:55:35 +02:00