[Bugs] [Bug 1315558] SEEK_HOLE and SEEK_DATA should return EINVAL when protocol support is missing
bugzilla at redhat.com
bugzilla at redhat.com
Wed Mar 30 15:28:42 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1315558
--- Comment #4 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/13633 committed in release-3.6 by Raghavendra
Bhat (raghavendra at redhat.com)
------
commit caccd6c205cd324ef184ac6333fb05acd0cc5d4e
Author: Niels de Vos <ndevos at redhat.com>
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.6. 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: 1315558
Change-Id: I142dde11923244809b03fcca8cd4c2f7d5ff3929
Signed-off-by: Niels de Vos <ndevos at redhat.com>
Reviewed-on: http://review.gluster.org/13633
Smoke: Gluster Build System <jenkins at build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
Reviewed-by: Shyamsundar Ranganathan <srangana at redhat.com>
Reviewed-by: Raghavendra Bhat <raghavendra at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=ZxGMOohUgz&a=cc_unsubscribe
More information about the Bugs
mailing list