From 6ad05cd4b7995a3791a9e45ce03dc31641e8d78f Mon Sep 17 00:00:00 2001 From: vmallika Date: Mon, 24 Aug 2015 13:14:59 +0530 Subject: posix: xattrop 'GF_XATTROP_GET_AND_SET' implementation GF_XATTROP_GET_AND_SET stores the existing xattr value in xdata and sets the new value xattrop was reusing input xattr dict to set the results instead of creating new dict. This can be problem for server side xlators as the inout dict will have the value changed. Change-Id: I43369082e1d0090d211381181e9f3b9075b8e771 BUG: 1251454 Signed-off-by: vmallika Reviewed-on: http://review.gluster.org/11995 Tested-by: Gluster Build System Tested-by: NetBSD Build System Reviewed-by: Raghavendra G --- libglusterfs/src/glusterfs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index 3e3d0b02dd1..18ffbb1f2b1 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -372,7 +372,8 @@ typedef enum { GF_XATTROP_ADD_ARRAY, GF_XATTROP_ADD_ARRAY64, GF_XATTROP_OR_ARRAY, - GF_XATTROP_AND_ARRAY + GF_XATTROP_AND_ARRAY, + GF_XATTROP_GET_AND_SET } gf_xattrop_flags_t; #define GF_SET_IF_NOT_PRESENT 0x1 /* default behaviour */ -- cgit