Bug 1289068
Summary: | libgfapi: Errno incorrectly set to EINVAL even on success | |||
---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Prashanth Pai <ppai> | |
Component: | libgfapi | Assignee: | Prashanth Pai <ppai> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sudhir D <sdharane> | |
Severity: | low | Docs Contact: | ||
Priority: | high | |||
Version: | mainline | CC: | bugs, thiago | |
Target Milestone: | --- | Keywords: | EasyFix, Triaged | |
Target Release: | --- | |||
Hardware: | All | |||
OS: | All | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.8rc2 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1296007 (view as bug list) | Environment: | ||
Last Closed: | 2016-06-16 13:49:19 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: | ||||
Bug Blocks: | 1296007 |
Description
Prashanth Pai
2015-12-07 11:33:48 UTC
This should also reproduce the behavior: ret = glfs_write (glfd, "qwertyuiopasdfghjklzxcvbnm", 26, 0); printf("errno after first write(): %d\n", errno); ret = glfs_write (glfd, "qwertyuiopasdfghjklzxcvbnm", 26, 0); printf("errno after second write(): %d\n", errno); # ./err errno after first write(): 0 errno after second write(): 22 REVIEW: http://review.gluster.org/12909 (Fix errno being set to EINVAL even on success) posted (#1) for review on master by Prashanth Pai (ppai) REVIEW: http://review.gluster.org/12909 (Fix errno being set to EINVAL even on success) posted (#2) for review on master by Vijay Bellur (vbellur) REVIEW: http://review.gluster.org/12909 (api: Fix errno being set to EINVAL even on success) posted (#3) for review on master by Vijay Bellur (vbellur) REVIEW: http://review.gluster.org/12909 (api: Fix errno being set to EINVAL even on success) posted (#4) for review on master by Vijay Bellur (vbellur) COMMIT: http://review.gluster.org/12909 committed in master by Shyamsundar Ranganathan (srangana) ------ commit 1e779acec75842b0e8d5a34ac2ea52f9caeff4d1 Author: Prashanth Pai <ppai> Date: Tue Dec 8 16:28:39 2015 +0530 api: Fix errno being set to EINVAL even on success BUG: 1289068 Change-Id: I7905ac70a537f23e1844c097a24eaa6cb762fb82 Signed-off-by: Prashanth Pai <ppai> Reviewed-on: http://review.gluster.org/12909 Tested-by: NetBSD Build System <jenkins.org> Tested-by: Gluster Build System <jenkins.com> Reviewed-by: jiffin tony Thottan <jthottan> Reviewed-by: Kaushal M <kaushal> Reviewed-by: Shyamsundar Ranganathan <srangana> REVIEW: http://review.gluster.org/13179 (api: Fix errno being set to EINVAL even on success) posted (#1) for review on release-3.7 by Prashanth Pai (ppai) 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.8.0, please open a new bug report. glusterfs-3.8.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://blog.gluster.org/2016/06/glusterfs-3-8-released/ [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user |