Bug 1315559
Summary: | SEEK_HOLE and SEEK_DATA should return EINVAL when protocol support is missing | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Niels de Vos <ndevos> |
Component: | libgfapi | Assignee: | Niels de Vos <ndevos> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sudhir D <sdharane> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.5.9 | CC: | bugs |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-3.5.9 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1315557 | Environment: | |
Last Closed: | 2016-06-17 16:22:42 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: | 1315557 | ||
Bug Blocks: | 1306988 |
Description
Niels de Vos
2016-03-08 04:45:21 UTC
REVIEW: http://review.gluster.org/13634 (gfapi: return EINVAL for unsupported lseek() operations) posted (#1) for review on release-3.5 by Niels de Vos (ndevos) REVIEW: http://review.gluster.org/13634 (gfapi: return EINVAL for unsupported lseek() operations) posted (#2) for review on release-3.5 by Niels de Vos (ndevos) COMMIT: http://review.gluster.org/13634 committed in release-3.5 by Niels de Vos (ndevos) ------ commit 206ccaa4f417da633af3860a3ffae896d517fdd0 Author: Niels de Vos <ndevos> Date: Tue Mar 8 05:39:01 2016 +0100 gfapi: return EINVAL for unsupported lseek() operations GlusterFS 3.8 contains support for SEEK_DATA/SEEK_HOLE. This protocol extension is not available in 3.5. libgfapi needs to handle unsupported SEEK_* operations correctly, by returning -1 and setting errno to EINVAL. This change is different from the patch in the master branch, it is only needed to do the improved error checking in this version. BUG: 1315559 Change-Id: I142dde11923244809b03fcca8cd4c2f7d5ff3929 Signed-off-by: Niels de Vos <ndevos> Reviewed-on: http://review.gluster.org/13634 NetBSD-regression: NetBSD Build System <jenkins.org> Smoke: Gluster Build System <jenkins.com> CentOS-regression: Gluster Build System <jenkins.com> Reviewed-by: Shyamsundar Ranganathan <srangana> This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.5.9, please open a new bug report. glusterfs-3.5.9 has been announced on the Gluster mailinglists [1] a while back, and packages for several distributions should be available by now. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.maintainers/486 |