From 3c0a7fb86eef1eecada77a6f040f96e1fd9e0536 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Thu, 7 Oct 2010 05:50:53 +0000 Subject: nfs3: Fix gfid to ino conversion Signed-off-by: Shehjar Tikoo Signed-off-by: Vijay Bellur BUG: 1724 (kernel untar fails during add-brick) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1724 --- xlators/nfs/server/src/nfs3-helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/nfs') diff --git a/xlators/nfs/server/src/nfs3-helpers.c b/xlators/nfs/server/src/nfs3-helpers.c index 2e0274624..15953438a 100644 --- a/xlators/nfs/server/src/nfs3-helpers.c +++ b/xlators/nfs/server/src/nfs3-helpers.c @@ -100,11 +100,11 @@ nfs3_iatt_gfid_to_ino (struct iatt *buf) return 0; if (buf->ia_ino != 1) - memcpy (&buf->ia_ino, &buf->ia_gfid[8], sizeof (uint64_t)); + memcpy (&ino, &buf->ia_gfid[8], sizeof (uint64_t)); else ino = 1; - return buf->ia_ino; + return ino; } -- cgit