From 301ecf4798ae5271b2155efee92e5d1ad734b05b Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 30 Oct 2013 11:57:01 +0530 Subject: features/gfid-access: Handle inode remap when parent inode is NULL Change-Id: Ic3f9d30d75df0bbbdf8fe28446fabe62d90fa854 BUG: 1024666 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/6194 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Vijay Bellur --- xlators/features/gfid-access/src/gfid-access.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'xlators/features/gfid-access') diff --git a/xlators/features/gfid-access/src/gfid-access.c b/xlators/features/gfid-access/src/gfid-access.c index e3882c1d7..da0ba7e50 100644 --- a/xlators/features/gfid-access/src/gfid-access.c +++ b/xlators/features/gfid-access/src/gfid-access.c @@ -508,13 +508,8 @@ ga_setxattr (call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *dict, return 0; } - /* now, check if the setxattr() is on gfid-path */ - if (!((loc->parent && - __is_gfid_access_dir (loc->parent->gfid)) || - __is_gfid_access_dir (loc->pargfid))) { - goto wind; - } - + //If the inode is a virtual inode change the inode otherwise perform + //the operation on same inode GFID_ACCESS_GET_VALID_DIR_INODE (this, loc, unref, wind); wind: -- cgit