mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
nbd/client: refactor nbd_read_eof
Refactor nbd_read_eof to return 1 on success, 0 on eof, when no data was read and <0 for other cases, because returned size of read data is not actually used. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20170804151440.320927-3-vsementsov@virtuozzo.com> [eblake: tweak function comments, rebase to test 083 enhancements] Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
a0acf3a8f7
commit
ab01df1fe2
3 changed files with 28 additions and 18 deletions
|
@ -69,12 +69,12 @@ read failed: Input/output error
|
|||
|
||||
=== Check disconnect 4 reply ===
|
||||
|
||||
read failed
|
||||
End of file
|
||||
read failed: Input/output error
|
||||
|
||||
=== Check disconnect 8 reply ===
|
||||
|
||||
read failed
|
||||
End of file
|
||||
read failed: Input/output error
|
||||
|
||||
=== Check disconnect before data ===
|
||||
|
@ -180,12 +180,12 @@ read failed: Input/output error
|
|||
|
||||
=== Check disconnect 4 reply ===
|
||||
|
||||
read failed
|
||||
End of file
|
||||
read failed: Input/output error
|
||||
|
||||
=== Check disconnect 8 reply ===
|
||||
|
||||
read failed
|
||||
End of file
|
||||
read failed: Input/output error
|
||||
|
||||
=== Check disconnect before data ===
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue