[Bugs] [Bug 1332372] Do not succeed mkdir without gfid-req

bugzilla at redhat.com bugzilla at redhat.com
Tue May 3 11:22:51 UTC 2016


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



--- Comment #2 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/14173 committed in release-3.7 by Pranith
Kumar Karampuri (pkarampu at redhat.com) 
------
commit d250a81c0aba677e1858a1f83337603bd94b3d90
Author: Anoop C S <anoopcs at redhat.com>
Date:   Fri Mar 18 10:32:09 2016 +0530

    features/trash: wind mkdir with special pid

    Recent changes done w.r.t handling of mkdir calls in posix translator
    resulted in crashing the brick process from trash translator. This was
    due to the changes made in posix translator to return EPERM for every
    mkdir calls without 'gfid-req' set in dictionary. In order to avoid
    gfid mismatches during directory creation from brick side trash
    translator does not set 'gfid-req'. This patch is to have an exemption
    for trash based on a special pid set for those mkdir calls originating
    from trash translator and to reset it in callback.

    This patch also includes a small optimization to the existing test case for
trash feature.

    > Reviewed-on: http://review.gluster.org/13776
    > 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: Jeff Darcy <jdarcy at redhat.com>

    (cherry picked from commit b5cfe948cb3569f034da80ac97b5d2f028b3b0e5)

    Change-Id: I59f084ac875e54342ecf2bffa6e43ebd84814153
    BUG: 1332372
    Signed-off-by: Anoop C S <anoopcs at redhat.com>
    Reviewed-on: http://review.gluster.org/14173
    Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>
    Tested-by: Pranith Kumar Karampuri <pkarampu at redhat.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
    Smoke: Gluster Build System <jenkins at build.gluster.com>

-- 
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