[Bugs] [Bug 1737141] read() returns more than file size when using direct I/O

bugzilla at redhat.com bugzilla at redhat.com
Mon Aug 5 09:16:16 UTC 2019


https://bugzilla.redhat.com/show_bug.cgi?id=1737141

Kevin Wolf <kwolf at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|needinfo?(teigland at redhat.c |
                   |om)                         |
                   |needinfo?(kwolf at redhat.com) |



--- Comment #4 from Kevin Wolf <kwolf at redhat.com> ---
(In reply to Nir Soffer from comment #2)
> Kevin, do you think this can affect qemu/qemu-img?

This is not a problem for QEMU as long as the file size is correct. If gluster
didn't do the zero padding, QEMU would do it internally.

In fact, fixing this in gluster may break the case of unaligned image sizes
with QEMU because the image size is rounded up to sector (512 byte) granularity
and the gluster driver turns short reads into errors. This would actually
affect non-O_DIRECT, too, which already seems to behave this way, so can you
just give this a quick test?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.


More information about the Bugs mailing list