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>
This commit is contained in:
Trond Myklebust
2007-10-09 12:01:04 -04:00
parent 2a3f5fd459
commit f43bf0bebe
4 changed files with 36 additions and 2 deletions

View File

@@ -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++;