From bebf55d991322c72d5b09b216c776ab0387c043e Mon Sep 17 00:00:00 2001 From: Fan Yong Date: Mon, 13 May 2013 13:53:42 +0800 Subject: [PATCH] LU-2904 nfs: support 64-bits inode number in nfs handle When exports filesystem via NFS, it can generate several kind of nfs handles. For most of cases, it recognizes/packs 32-bits inode number in the nfs handle, which cannot work on the filesystem using 64-bits inode number. In kernel space, NFS also can generate/use nfs handle with 64-bits inode number for the handle type 'FSID_UUID16_INUM'. Unfortunately, the user space nfs-utils truncates 64-bits inode number to 32-bits. So just keep 64-bits inode number in nfs-utils to support to export the filesystem which uses 64-bits inode number. Signed-off-by: Fan Yong --- utils/mountd/cache.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c index 517aa62..a7212e7 100644 --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -388,7 +388,7 @@ struct parsed_fsid { int fsidtype; /* We could use a union for this, but it would be more * complicated; why bother? */ - unsigned int inode; + unsigned long long inode; /* We need 64-bits ino# */ unsigned int minor; unsigned int major; unsigned int fsidnum; -- 1.7.1