Patchwork [BUG:1600] nfs3: Copy deviceid from correct gfid start octet

login
register
Submitter Shehjar Tikoo
Date 2010-09-15 10:04:08
Message ID <1284545048-17620-1-git-send-email-shehjart@gluster.com>
Download mbox | patch
Permalink /patch/4795/
State Accepted
Headers show

Comments

Shehjar Tikoo - 2010-09-15 10:04:08
From: Shehjar Tikoo <shehjart@gluster.com>


Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
---
 xlators/nfs/server/src/nfs3.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/xlators/nfs/server/src/nfs3.c b/xlators/nfs/server/src/nfs3.c
index c4aaef3..0a55e55 100644
--- a/xlators/nfs/server/src/nfs3.c
+++ b/xlators/nfs/server/src/nfs3.c
@@ -529,7 +529,7 @@  nfs3_request_xlator_deviceid (rpcsvc_request_t *rq)
                 devid = (uint64_t)nfs_xlator_to_xlid (nfs3->exportslist, xl);
         else {
                 __nfs3_get_volume_id (nfs3, xl, volumeid);
-                memcpy (&devid, &volumeid[15], sizeof (devid));
+                memcpy (&devid, &volumeid[8], sizeof (devid));
         }
 
         return devid;