path: root/libglusterfs
diff options
authorNiels de Vos <>2016-03-08 05:39:01 +0100
committerVijay Bellur <>2016-03-09 04:03:23 -0800
commitba1a401e142ad8884f9d3f13c51f7d5b17d008fc (patch)
treef82a51539b4329bcf4360df70d89addbe69bb0c6 /libglusterfs
parentd6361f4d52251fe5f2e3af11e3a95fd0cf30a567 (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 <> Reviewed-on: Smoke: Gluster Build System <> Reviewed-by: Shyamsundar Ranganathan <> NetBSD-regression: NetBSD Build System <> CentOS-regression: Gluster Build System <> Reviewed-by: Vijay Bellur <>
Diffstat (limited to 'libglusterfs')
0 files changed, 0 insertions, 0 deletions