Bug 1309342
Summary: | Wrong permissions set on previous copy of truncated files inside trash directory | |||
---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Anoop C S <anoopcs> | |
Component: | trash-xlator | Assignee: | Anoop C S <anoopcs> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | mainline | CC: | bugs, jthottan | |
Target Milestone: | --- | Keywords: | Reopened | |
Target Release: | --- | |||
Hardware: | All | |||
OS: | All | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.7.9 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1313233 (view as bug list) | Environment: | ||
Last Closed: | 2016-05-28 05:56:59 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1313233 |
Description
Anoop C S
2016-02-17 14:21:17 UTC
REVIEW: http://review.gluster.org/13461 (features/trash: Retain file permissions during truncate) posted (#1) for review on master by Anoop C S (anoopcs) COMMIT: http://review.gluster.org/13461 committed in master by Jeff Darcy (jdarcy) ------ commit b1cb581424305592fac5394a578b307117b22fe7 Author: Anoop C S <anoopcs> 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> Reviewed-on: http://review.gluster.org/13461 Smoke: Gluster Build System <jenkins.com> CentOS-regression: Gluster Build System <jenkins.com> NetBSD-regression: NetBSD Build System <jenkins.org> Reviewed-by: jiffin tony Thottan <jthottan> Reviewed-by: Jeff Darcy <jdarcy> |