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:
@@ -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++;
|
||||
|
Reference in New Issue
Block a user