diff options
author | Niels de Vos <ndevos@redhat.com> | 2016-03-08 05:39:01 +0100 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2016-03-09 04:03:23 -0800 |
commit | ba1a401e142ad8884f9d3f13c51f7d5b17d008fc (patch) | |
tree | f82a51539b4329bcf4360df70d89addbe69bb0c6 /doc | |
parent | d6361f4d52251fe5f2e3af11e3a95fd0cf30a567 (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.7. 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: 1315557
Change-Id: I142dde11923244809b03fcca8cd4c2f7d5ff3929
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: http://review.gluster.org/13631
Smoke: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions