From 3481e42a5325ba8a53f9121005dca80419658ea8 Mon Sep 17 00:00:00 2001 From: vmallika Date: Thu, 27 Aug 2015 11:31:01 +0530 Subject: posix: xattrop 'GF_XATTROP_GET_AND_SET' implementation This is a backport of http://review.gluster.org/#/c/11995 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 Change-Id: I7e0c27fd415131e9983a10d27067f63ed3a7701e BUG: 1257441 Signed-off-by: vmallika Reviewed-on: http://review.gluster.org/12022 Tested-by: NetBSD Build System Tested-by: Gluster 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 29f16fc6033..2f2d23c48cd 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -377,7 +377,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