From 22d821969a7204d09339b1a52a1d38e609e5aa86 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 7 Jun 2013 15:45:26 +0530 Subject: cluster/dht: Make sure loc has gfid Problem: In some code paths neither loc->gfid nor loc->inode->gfid is populated which leads to EINVAL for linkfile setattr in dht_linkfile_attr_heal. Fix: Populate loc->gfid before dht_linkfile_attr_heal. Change-Id: I062770e6f6eaead304eff1dae81f8588a3b97eed BUG: 971805 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/5178 Reviewed-by: Shishir Gowda Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- tests/bugs/bug-884597.t | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/bugs') diff --git a/tests/bugs/bug-884597.t b/tests/bugs/bug-884597.t index db82fbd6..8eb1f330 100755 --- a/tests/bugs/bug-884597.t +++ b/tests/bugs/bug-884597.t @@ -149,3 +149,4 @@ BACKEND_UID=`stat --printf=%u $B0/${V0}$cached/user_file$i`; BACKEND_GID=`stat --printf=%g $B0/${V0}$cached/user_file$i`; EXPECT "0" uid_gid_compare $NEW_UID $NEW_GID $BACKEND_UID $BACKEND_GID +cleanup; -- cgit