go-ceph/rbd
Niels de Vos 522182cbc3 rbd: Read() should return io.EOF on short reads
The case of a short read is not detected correctly. This causes Read()
to not return io.EOF where it is expected.

By comparing 'len(data)' instead of unassigned 'n' (set to 0), the
number of bytes that have been read can be compared to the number of
bytes that were requested.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-01-23 08:05:34 +01:00
..
doc.go rbd: use correct style for package doc comment 2019-12-12 11:34:51 -05:00
options_test.go rbd/options: move tests to "rbd" package 2020-01-22 10:15:28 +01:00
options.go rbd: improve doc comments for RbdImageOptions functions 2020-01-21 18:51:36 -05:00
rbd_test.go rbd/tests: add special "read 0 bytes" case 2020-01-22 16:48:18 +01:00
rbd.go rbd: Read() should return io.EOF on short reads 2020-01-23 08:05:34 +01:00