[Bugs] [Bug 1306264] glfs_lseek returns incorrect offset for SEEK_SET and SEEK_CUR flags

bugzilla at redhat.com bugzilla at redhat.com
Thu Feb 11 10:59:48 UTC 2016


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



--- Comment #2 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/13423 committed in master by Niels de Vos
(ndevos at redhat.com) 
------
commit 095e2c48271a5248c8711a4e6a34bcb4d44c440e
Author: Anoop C S <anoopcs at redhat.com>
Date:   Wed Feb 10 17:08:26 2016 +0530

    api: glfs_lseek must return repositioned offset for SEEK_SET, SEEK_CUR
flags

    On success, glfs_lseek() API is responsible for providing the
    repositioned offset as its return value. But for SEEK_SET and
    SEEK_CUR flags, glfs_lseek() returns -1 on successfully
    repositioning the fd offset. Current change is to set ret to
    0 after glfd->offset is modified correctly so as to return the
    correct offset.

    Change-Id: I94d582779a98074cf633289f4b60b3c6a04e4f18
    BUG: 1306264
    Signed-off-by: Anoop C S <anoopcs at redhat.com>
    Reviewed-on: http://review.gluster.org/13423
    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: jiffin tony Thottan <jthottan at redhat.com>
    Reviewed-by: Niels de Vos <ndevos 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=SbKAVwVBVH&a=cc_unsubscribe


More information about the Bugs mailing list