summaryrefslogtreecommitdiffstats
path: root/xlators/features/gfid-access/src/gfid-access.c
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2013-10-30 11:57:01 +0530
committerVijay Bellur <vbellur@redhat.com>2013-10-31 03:53:19 -0700
commit301ecf4798ae5271b2155efee92e5d1ad734b05b (patch)
treee218cc27686c84dfa7449dbc3d1d9536da2f5d6f /xlators/features/gfid-access/src/gfid-access.c
parent5e96e7d4a976975d8eac0bbf8d0d7ea663665bce (diff)
features/gfid-access: Handle inode remap when parent inode is NULL
Change-Id: Ic3f9d30d75df0bbbdf8fe28446fabe62d90fa854 BUG: 1024666 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/6194 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/features/gfid-access/src/gfid-access.c')
-rw-r--r--xlators/features/gfid-access/src/gfid-access.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/xlators/features/gfid-access/src/gfid-access.c b/xlators/features/gfid-access/src/gfid-access.c
index e3882c1d723..da0ba7e5046 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: