From 8eda793ed6762ca71521698eb80e2262b5b63092 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Mon, 13 Jan 2014 16:13:30 +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. BUG: 971805 Change-Id: I8e4b7510ee5c38aa9ccf5283c7165c7df25ec62b Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/6691 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- tests/bugs/bug-884597.t | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/bugs/bug-884597.t b/tests/bugs/bug-884597.t index 0d3495a6597..c49f5332b1f 100755 --- a/tests/bugs/bug-884597.t +++ b/tests/bugs/bug-884597.t @@ -107,3 +107,4 @@ BACKEND_UID=`stat --printf=%u $B0/${V0}$cached/link$i`; BACKEND_GID=`stat --printf=%g $B0/${V0}$cached/link$i`; EXPECT "0" uid_gid_compare $NEW_UID $NEW_GID $BACKEND_UID $BACKEND_GID +cleanup; -- cgit