On 18/05/2020 22:37, Guoqing Jiang wrote:
That should work, however you really should check the return value of
lseek as well, while looking at this.
Okay, though I did not get complain about it =-O. Anyway, will send v3.
Just for info - I'm currently building my new system, which means my old
system will become a raid testbed. And I'm playing with dm-integrity,
which I believe returns an integrity error not a read error when things
go wrong.
So yes, if errors aren't handled correctly I'm quite likely to find
myself falling over them ...
Cheers,
Wol