Bug 1737141
Summary: | read() returns more than file size when using direct I/O | |||
---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Nir Soffer <nsoffer> | |
Component: | sharding | Assignee: | Krutika Dhananjay <kdhananj> | |
Status: | CLOSED NEXTRELEASE | QA Contact: | bugs <bugs> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 6 | CC: | bugs, csaba, kdhananj, khiremat, kwolf, mkalinin, nbalacha, pkarampu, rabhat, rgowdapp, rkavunga, sabose, teigland, tnisan, vjuranek | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1738419 (view as bug list) | Environment: | ||
Last Closed: | 2019-10-24 09:25:08 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 1738419 | |||
Bug Blocks: |
Description
Nir Soffer
2019-08-02 19:19:55 UTC
David, do you think this can affect sanlock? Kevin, do you think this can affect qemu/qemu-img? @Nir, thanks for the report. We will look into this. (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? (In reply to Nir Soffer from comment #1) > David, do you think this can affect sanlock? I don't think so. sanlock doesn't use any space that it didn't first write to initialize. REVIEW: https://review.gluster.org/23212 (features/shard: Send correct size when reads are sent beyond file size) posted (#1) for review on release-6 by Krutika Dhananjay REVIEW: https://review.gluster.org/23212 (features/shard: Send correct size when reads are sent beyond file size) merged (#3) on release-6 by hari gowtham Krutika, can we backport this fix to current RHGS? This issue affects RHV customers, see bug 1800803. (In reply to Nir Soffer from comment #8) > Krutika, can we backport this fix to current RHGS? > > This issue affects RHV customers, see bug 1800803. Yes, I will do the needful. Thanks. -Krutika |