[Bugs] [Bug 1313233] Wrong permissions set on previous copy of truncated files inside trash directory

bugzilla at redhat.com bugzilla at redhat.com
Tue Mar 1 12:21:30 UTC 2016


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



--- Comment #2 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/13555 committed in release-3.7 by Vijay
Bellur (vbellur at redhat.com) 
------
commit 82674a299a3fa9b969c494d2d0a3e72600323af8
Author: Anoop C S <anoopcs at redhat.com>
Date:   Wed Feb 17 15:50:05 2016 +0530

    features/trash: Retain file permissions during truncate

    Consider the situation where directory path for a truncated
    file does not exists under trash directory. In this scenario
    after creating the required path we failed to create the
    orginal file with proper permissions. Eventhough we try to
    fetch permissions from local->origpath, it was never filled
    with required value in truncate and ftruncate call paths.
    This change will copy original location to local->origpath
    inside both fop handling functions.

    >Change-Id: If5930b6d368d08e58f04db999f3f9edb9250bcb9
    >BUG: 1309342
    >Signed-off-by: Anoop C S <anoopcs at redhat.com>
    >Reviewed-on: http://review.gluster.org/13461
    >Smoke: Gluster Build System <jenkins at build.gluster.com>
    >CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
    >NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    >Reviewed-by: jiffin tony Thottan <jthottan at redhat.com>
    >Reviewed-by: Jeff Darcy <jdarcy at redhat.com>
    (cherry picked from commit b1cb581424305592fac5394a578b307117b22fe7)

    Change-Id: I5d964b4d802551bb04a7011f88edb59a1231238e
    BUG: 1313233
    Signed-off-by: Anoop C S <anoopcs at redhat.com>
    Reviewed-on: http://review.gluster.org/13555
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    Smoke: Gluster Build System <jenkins at build.gluster.com>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: jiffin tony Thottan <jthottan at redhat.com>
    Reviewed-by: Vijay Bellur <vbellur 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=bKq1MnTsbd&a=cc_unsubscribe


More information about the Bugs mailing list