[Bugs] [Bug 1391448] New: md-cache: Invalidate cache entry in case of OPEN with O_TRUNC

bugzilla at redhat.com bugzilla at redhat.com
Thu Nov 3 10:56:30 UTC 2016


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

            Bug ID: 1391448
           Summary: md-cache: Invalidate cache entry in case of OPEN with
                    O_TRUNC
           Product: GlusterFS
           Version: 3.9
         Component: md-cache
          Keywords: Triaged
          Severity: medium
          Assignee: bugs at gluster.org
          Reporter: skoduri at redhat.com
                CC: bugs at gluster.org
        Depends On: 1382266
            Blocks: 1381968



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

Description of problem:

In case if there is open() done on a file with O_TRUNC posix flag passed, the
backend server truncates the file, resulting in change of size of the file.
This case needs to be handled by md-cache and should invalidate its cache-entry
accordingly.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from Worker Ant on 2016-10-06 03:47:11 EDT ---

REVIEW: http://review.gluster.org/15618 (md-cache: Invalidate cache entry for
open() with O_TRUNC) posted (#1) for review on master by soumya k
(skoduri at redhat.com)

--- Additional comment from Worker Ant on 2016-10-10 09:12:30 EDT ---

REVIEW: http://review.gluster.org/15618 (md-cache: Invalidate cache entry for
open() with O_TRUNC) posted (#2) for review on master by soumya k
(skoduri at redhat.com)

--- Additional comment from Worker Ant on 2016-10-10 09:48:39 EDT ---

REVIEW: http://review.gluster.org/15618 (md-cache: Invalidate cache entry for
open() with O_TRUNC) posted (#3) for review on master by soumya k
(skoduri at redhat.com)

--- Additional comment from Worker Ant on 2016-10-14 06:46:40 EDT ---

REVIEW: http://review.gluster.org/15618 (md-cache: Invalidate cache entry for
open() with O_TRUNC) posted (#4) for review on master by soumya k
(skoduri at redhat.com)

--- Additional comment from Worker Ant on 2016-10-27 01:46:36 EDT ---

COMMIT: http://review.gluster.org/15618 committed in master by Raghavendra G
(rgowdapp at redhat.com) 
------
commit 6ca5d6382f03685b31b12accb095093cf1486603
Author: Soumya Koduri <skoduri at redhat.com>
Date:   Thu Oct 6 13:13:44 2016 +0530

    md-cache: Invalidate cache entry for open() with O_TRUNC

    When a file is opened with O_TRUNC flag set, its size gets
    set to '0'. This case needs to be handled in md-cache to
    avoid sending incorrect cached stat.

    Change-Id: I95d1f8a6634734898883ede010c3e7b0b7eb97d9
    BUG: 1382266
    Signed-off-by: Soumya Koduri <skoduri at redhat.com>
    Reviewed-on: http://review.gluster.org/15618
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: jiffin tony Thottan <jthottan at redhat.com>
    Tested-by: jiffin tony Thottan <jthottan at redhat.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Kaleb KEITHLEY <kkeithle at redhat.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1381968
[Bug 1381968] md-cache: Invalidate cache entry in case of OPEN with O_TRUNC
https://bugzilla.redhat.com/show_bug.cgi?id=1382266
[Bug 1382266] md-cache: Invalidate cache entry in case of OPEN with O_TRUNC
-- 
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