Alberto Faria bf5b16fa40 block: Make blk_{pread,pwrite}() return 0 on success
They currently return the value of their 'bytes' parameter on success.

Make them return 0 instead, for consistency with other I/O functions and
in preparation to implement them using generated_co_wrapper. This also
makes it clear that short reads/writes are not possible.

Signed-off-by: Alberto Faria <afaria@redhat.com>
Message-Id: <20220705161527.1054072-2-afaria@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
2022-07-12 12:14:56 +02:00
..
2022-03-09 09:28:28 +00:00
2022-02-26 18:40:51 +01:00
2022-05-03 15:17:30 +04:00
2022-05-08 18:52:37 +01:00
2022-05-08 18:52:37 +01:00
2021-05-02 17:24:50 +02:00
2021-11-02 17:24:18 +01:00
2021-11-09 10:11:27 +01:00