From 2992c18c1370ada476223b496e4e970d70cdd359 Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Fri, 10 Jul 2015 11:23:07 +0530 Subject: syncop: Include iatt to 'syncop_link' args Include iatt to 'syncop_link' args to fetch proper attributes of the newly linked inode. Signed-off-by: Soumya Koduri Change-Id: If6b92961bd7a89add3791ed3a9b494087348b492 BUG: 1241788 Reviewed-on: http://review.gluster.org/11611 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Shyamsundar Ranganathan Reviewed-by: Kaleb KEITHLEY --- api/src/glfs-fops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/src/glfs-fops.c') diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c index 815e96a09e3..ce52ba5554c 100644 --- a/api/src/glfs-fops.c +++ b/api/src/glfs-fops.c @@ -1996,7 +1996,7 @@ retrynew: } newloc.inode = inode_ref (oldloc.inode); - ret = syncop_link (subvol, &oldloc, &newloc, NULL, NULL); + ret = syncop_link (subvol, &oldloc, &newloc, &newiatt, NULL, NULL); DECODE_SYNCOP_ERR (ret); if (ret == -1 && errno == ESTALE) { @@ -2007,7 +2007,7 @@ retrynew: } if (ret == 0) - ret = glfs_loc_link (&newloc, &oldiatt); + ret = glfs_loc_link (&newloc, &newiatt); out: loc_wipe (&oldloc); loc_wipe (&newloc); -- cgit