summaryrefslogtreecommitdiffstats
path: root/fs/nfs/dir.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-09 12:01:04 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-09 17:20:52 -0400
commitf43bf0bebed7c33b698a8a25f95812f9e87c3843 (patch)
tree20c527153cde564ca3517cf6f214fa32727542bb /fs/nfs/dir.c
parent2a3f5fd45938bd86ce8faf4cb26be4f7e9ae2941 (diff)
downloadlinux-stable-f43bf0bebed7c33b698a8a25f95812f9e87c3843.tar.gz
linux-stable-f43bf0bebed7c33b698a8a25f95812f9e87c3843.tar.bz2
linux-stable-f43bf0bebed7c33b698a8a25f95812f9e87c3843.zip
NFS: Add a boot parameter to disable 64 bit inode numbers
This boot parameter will allow legacy 32-bit applications which call stat() to continue to function even if the NFSv3/v4 server uses 64-bit inode numbers. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r--fs/nfs/dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index a4fdc4cc306c..8ec7fbd8240c 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -427,7 +427,8 @@ int nfs_do_filldir(nfs_readdir_descriptor_t *desc, void *dirent,
}
res = filldir(dirent, entry->name, entry->len,
- file->f_pos, fileid, d_type);
+ file->f_pos, nfs_compat_user_ino64(fileid),
+ d_type);
if (res < 0)
break;
file->f_pos++;