diff options
author | Niels de Vos <ndevos@redhat.com> | 2016-03-08 05:39:01 +0100 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2016-03-08 21:21:29 -0800 |
commit | 206ccaa4f417da633af3860a3ffae896d517fdd0 (patch) | |
tree | 6375962c789e68aa35155927ad7dd85ce9d9e190 /tests | |
parent | 721b15a74d9e4ff8455744cfc8672bf007e33cf5 (diff) |
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@redhat.com>
Reviewed-on: http://review.gluster.org/13634
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions