[Bugs] [Bug 1437763] File-level WORM allows ftruncate() on read-only files

bugzilla at redhat.com bugzilla at redhat.com
Thu Apr 13 15:37:26 UTC 2017


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



--- Comment #3 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/16999 committed in release-3.10 by
Shyamsundar Ranganathan (srangana at redhat.com) 
------
commit 0090727aea9dfcfdd06debadeb5cf9377adca64f
Author: karthik-us <ksubrahm at redhat.com>
Date:   Tue Apr 4 18:57:32 2017 +0530

    features/worm: Adding implementation for ftruncate

    Problem:
    Since the ftruncate fop was not handled in the worm feature, when
    truncate and write was happening on a worm-retained/worm file, it was
    giving the EROFS error but truncating the file, which is not correct.

    > Change-Id: I1a7e904655210d78bce9e01652ac56f3783b5aed
    > BUG: 1438810
    > Signed-off-by: karthik-us <ksubrahm at redhat.com>
    > Reviewed-on: https://review.gluster.org/16995
    > NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    > Reviewed-by: Niels de Vos <ndevos at redhat.com>
    > CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    > Reviewed-by: Ravishankar N <ravishankar at redhat.com>
    > Smoke: Gluster Build System <jenkins at build.gluster.org>
    > Reviewed-by: Amar Tumballi <amarts at redhat.com>
    > Reviewed-by: Raghavendra Talur <rtalur at redhat.com>
    (cherry picked from commit c5a4a77848024d2adf8cd4f35d550ba90c174fc7)

    Change-Id: I815049d37d95597021e11b1e3d25d56bb83623c4
    BUG: 1437763
    Signed-off-by: karthik-us <ksubrahm at redhat.com>
    Reviewed-on: https://review.gluster.org/16999
    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: Ravishankar N <ravishankar at redhat.com>
    Reviewed-by: jiffin tony Thottan <jthottan at redhat.com>
    Reviewed-by: Shyamsundar Ranganathan <srangana 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=l751LHh1DR&a=cc_unsubscribe


More information about the Bugs mailing list