[Bugs] [Bug 1399131] New: SEEK_HOLE/ SEEK_DATA doesn't return the correct offset

bugzilla at redhat.com bugzilla at redhat.com
Mon Nov 28 10:52:50 UTC 2016


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

            Bug ID: 1399131
           Summary: SEEK_HOLE/ SEEK_DATA doesn't return the correct offset
           Product: GlusterFS
           Version: 3.9
         Component: protocol
          Keywords: Triaged
          Assignee: bugs at gluster.org
          Reporter: ravishankar at redhat.com
                CC: bugs at gluster.org
        Depends On: 1398076
            Blocks: 1399130



+++ This bug was initially created as a clone of Bug #1398076 +++

Description of problem:
Found while testing the downstream kernel with FUSE support for seek_hole/data
that we always get zero as the offset when we try these flags.

--- Additional comment from Worker Ant on 2016-11-23 23:02:29 EST ---

REVIEW: http://review.gluster.org/15920 (protocol/server: capute offset in
seek) posted (#1) for review on master by Ravishankar N
(ravishankar at redhat.com)

--- Additional comment from Worker Ant on 2016-11-26 10:37:08 EST ---

REVIEW: http://review.gluster.org/15920 (protocol/server: capture offset in
seek) posted (#2) for review on master by Ravishankar N
(ravishankar at redhat.com)

--- Additional comment from Worker Ant on 2016-11-28 05:33:14 EST ---

COMMIT: http://review.gluster.org/15920 committed in master by Pranith Kumar
Karampuri (pkarampu at redhat.com) 
------
commit cc37e5929d1e3ea4eaf4c4576a82066bf131ad05
Author: Ravishankar N <ravishankar at redhat.com>
Date:   Thu Nov 24 08:31:47 2016 +0530

    protocol/server: capture offset in seek

    Problem:
    http://review.gluster.org/11482 implemented seek FOP but
    http://review.gluster.org/#/c/14137/ 'undid' the change where we pack
    the offset returned by seek in server xlator before sending it to the
client.
    As a result, seek always returns zero to the client for SEEK_HOLE/
    SEEK_DATA.

    Fix:
    I think 14137 removed it unintentionally, hence adding it back again.

    Signed-off-by: Ravishankar N <ravishankar at redhat.com>
    Change-Id: I67a1f7b53214b043c5291f5704be4a50b698f91c
    BUG: 1398076
    Reviewed-on: http://review.gluster.org/15920
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1398076
[Bug 1398076] SEEK_HOLE/ SEEK_DATA doesn't return the correct offset
https://bugzilla.redhat.com/show_bug.cgi?id=1399130
[Bug 1399130] SEEK_HOLE/ SEEK_DATA doesn't return the correct offset
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list