]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/blkdev: handle interrupted read call
authorSamanta Navarro <ferivoz@riseup.net>
Fri, 13 Jan 2023 11:50:40 +0000 (11:50 +0000)
committerSamanta Navarro <ferivoz@riseup.net>
Mon, 16 Jan 2023 12:05:21 +0000 (12:05 +0000)
commit5d5cd07bebbbbec93c4c0bd6e247c1189ec3e3aa
tree1747902766eb996367143e183a95bee1c37f2d7c
parentdbf77f7a19e50686324e4fd5bb922411c2ada24e
lib/blkdev: handle interrupted read call

The read call may fail if it is interrupted by a signal. Do not assume
that we have reached the end of the underlying block device because of
this. Use read_all which retries in these cases.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
lib/blkdev.c