Commit graph

9 commits

Author SHA1 Message Date
Floris Bos
5b072f3196 Build changes
- Add support for embedded Linux without X, dbus, udisks, ntp, etc.
- Misc minor changes
2020-05-25 00:36:16 +02:00
Floris Bos
71eefa47cf Fix handling of UNC file URLs
- Qt thinks UNC URLs should look like: file://1.2.3.4/share/file.img
libcurl likes them: file:////1.2.3.4/share/file.img

So correct that.

- Mention it is an unspecified libcurl error if libcurl passes us
an error code with an empty error message string.

Closes #65
2020-05-24 00:00:35 +02:00
Floris Bos
3248f9f04b Linux: improve progess indication
Report data actually written to device instead of to cache.
2020-05-23 22:22:32 +02:00
Floris Bos
b08ed20e5f Linux: enable direct IO for verify
Linux has huge buffer cache (all free memory)
So make sure we are reading data back from the actual card instead
of cache.
2020-05-23 21:40:52 +02:00
Floris Bos
8048b5e47c Use accelerated hashing for verification
Modern CPUs have special instructions to accelerate computing
SHA hashes.
The Qt QCryptographicHash code is standard C, so not taking
advantage of those though.
Outsource the hashing to OpenSSL that does.

Shaves off some seconds during verification stage.
2020-05-23 17:50:59 +02:00
Floris Bos
0264af9b73 Performance improvements
- Use larger buffer size when writing uncompressed files
  (was libcurl's default of 16 kb, change it to 128 kb)
- Uncompress the next MB of data, while it is hashing/writing to
  disk in seperate thread.
2020-03-10 23:22:20 +01:00
Floris Bos
9a0454d07f Verify error: correct spelling 2020-03-09 13:04:21 +01:00
Floris Bos
a367ed0683 Fix verifying on images that are not dividable by block size 2020-03-06 12:00:46 +01:00
Floris Bos
d7b361ba44 Qt/QML edition 2020-03-04 16:55:40 +01:00