Milan Broz
ca2e1fc956
Fix some includes.
2021-02-27 21:14:38 +01:00
Milan Broz
d1d9dd8e20
Update Copyright year.
2021-01-25 22:00:25 +01:00
Milan Broz
080566a1fd
Update copyright year.
2020-01-03 13:04:55 +01:00
Milan Broz
a6f5ce8c7b
Update copyright year.
...
And unify name copyright format.
2019-01-25 09:45:57 +01:00
Milan Broz
825fc895dc
Fix some signed/unsigned comparison warnings.
2018-10-14 20:36:45 +02:00
Milan Broz
31532adf86
Do not copy buffer if read fails.
2018-10-11 15:39:31 +02:00
Ondrej Kozina
97ab7e9c65
Add interruptible variants of buffered io.
2018-07-19 14:44:42 +02:00
Ondrej Kozina
bbf92828f6
Move buffered io implementation in new functions.
...
No functional changes yet. See later commits.
2018-07-19 14:44:37 +02:00
Ondrej Kozina
dc852a100f
Fix write_blockwise on short files.
...
see unit test write_blockwise(length=2097153, bsize=4096), on x86
with original test file size=2097152.
The test is trying to write_blockwise 1 more byte than actual file
size.
2018-06-20 16:58:19 +02:00
Ondrej Kozina
838d51d296
Fix write_lseek_blockwise for in the middle of sector case.
...
See unit test write_lseek_blockwise(bsize=512, offset=1, length=1).
The test tries to modify single byte at offset 1 of device with
bsize=512.
2018-06-20 16:58:01 +02:00
Ondrej Kozina
e2845bc032
Zero length lseek blockwise i/o should return zero.
...
Note that both functions perform seek operations aligned to sector
boundary if possible before returning.
Unaligned input offset gets aligned on first preceding sector
boundary.
2018-06-20 16:57:54 +02:00
Ondrej Kozina
869767a5cf
Move general i/o code to stand-alone utility file.
...
Get rid of internal library stuff linked to the utilities.
Also rename 'count' param to 'length' clarifying handling
of the parameter internally.
2018-04-11 15:33:43 +02:00