path: root/libglusterfs/src
diff options
authorAnoop C S <>2016-03-18 10:32:09 +0530
committerPranith Kumar Karampuri <>2016-05-03 04:22:48 -0700
commitd250a81c0aba677e1858a1f83337603bd94b3d90 (patch)
treef0138a29554c6ae88aa016f3e84ed357c09ec3d5 /libglusterfs/src
parentbe41e31fefb92bf09c23efdb228000a2a1de28b5 (diff)
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: > Smoke: Gluster Build System <> > NetBSD-regression: NetBSD Build System <> > CentOS-regression: Gluster Build System <> > Reviewed-by: Jeff Darcy <> (cherry picked from commit b5cfe948cb3569f034da80ac97b5d2f028b3b0e5) Change-Id: I59f084ac875e54342ecf2bffa6e43ebd84814153 BUG: 1332372 Signed-off-by: Anoop C S <> Reviewed-on: Reviewed-by: Pranith Kumar Karampuri <> Tested-by: Pranith Kumar Karampuri <> NetBSD-regression: NetBSD Build System <> CentOS-regression: Gluster Build System <> Smoke: Gluster Build System <>
Diffstat (limited to 'libglusterfs/src')
1 files changed, 2 insertions, 1 deletions
diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h
index 76952d5e14b..0ae575bce11 100644
--- a/libglusterfs/src/common-utils.h
+++ b/libglusterfs/src/common-utils.h
@@ -129,7 +129,8 @@ enum _gf_special_pid
enum _gf_xlator_ipc_targets {