summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-10-07 05:50:53 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-07 05:09:04 -0700
commit3c0a7fb86eef1eecada77a6f040f96e1fd9e0536 (patch)
treeac53bb8b65e8f74cc3dbbf6356d369f2845e2e32 /xlators
parent58ce5f46af7e08db3d786c597ec5144294fbd099 (diff)
nfs3: Fix gfid to ino conversion
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1724 (kernel untar fails during add-brick) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1724
Diffstat (limited to 'xlators')
-rw-r--r--xlators/nfs/server/src/nfs3-helpers.c4
1 files changed, 2 insertions, 2 deletions
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;
}