Description of problem: In the case of fsync fails with error, the posix_fsync in posix xlator does not correctly return the error code. Version-Release number of selected component (if applicable): The mainline, and 3.4, 3.5 and 3.6 branch are all affected. How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Zhang Huan, Seems like you know the issue, want to send a patch? Pranith
REVIEW: http://review.gluster.org/8398 (storage/posix: fix return value of posix_fsync on error) posted (#1) for review on master by Zhang Huan (zhhuan)
REVIEW: http://review.gluster.org/8398 (storage/posix: fix issue in posix_fsync) posted (#2) for review on master by Zhang Huan (zhhuan)
COMMIT: http://review.gluster.org/8398 committed in master by Vijay Bellur (vbellur) ------ commit b12ee8fbaf8f720f9072ea6b62bb844232870e6e Author: Zhang Huan <zhhuan> Date: Fri Mar 7 11:08:47 2014 +0800 storage/posix: fix issue in posix_fsync Fix the issue that posix_fsync does not correctly return and save error code in op_errno when call to sys_fdatasync fails. Change-Id: Id0b62cfa009dbb52c8a0992abd5c46330fa0a8c0 BUG: 1125814 Signed-off-by: Zhang Huan <zhhuan> Reviewed-on: http://review.gluster.org/8398 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu> Reviewed-by: Santosh Pradhan <spradhan> Reviewed-by: Vijay Bellur <vbellur>
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.7.0, please open a new bug report. glusterfs-3.7.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://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user