[Bugs] [Bug 1315557] SEEK_HOLE and SEEK_DATA should return EINVAL when protocol support is missing

bugzilla at redhat.com bugzilla at redhat.com
Wed Mar 9 12:03:29 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1315557



--- Comment #3 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/13631 committed in release-3.7 by Vijay
Bellur (vbellur at redhat.com) 
------
commit ba1a401e142ad8884f9d3f13c51f7d5b17d008fc
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.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 at redhat.com>
    Reviewed-on: http://review.gluster.org/13631
    Smoke: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Shyamsundar Ranganathan <srangana at redhat.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Vijay Bellur <vbellur 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=W6Vwuj9uiE&a=cc_unsubscribe


More information about the Bugs mailing list