]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Ensure we request the ordinary fileid when doing readdirplus
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 27 Apr 2011 17:47:52 +0000 (13:47 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 27 Apr 2011 19:57:16 +0000 (15:57 -0400)
commitbb7935ac4c8f6cecb957c0cbdeaf3ed57ddd3e74
tree436a4a7209ab9acab87c0e0ecb0cac9b2c749f3d
parent44b3c295fb71db995ebf29c4a41bbbda0dee6377
NFSv4: Ensure we request the ordinary fileid when doing readdirplus

When readdir() returns a directory entry for the root of a mounted
filesystem, Linux follows the old convention of returning the inode
number of the covered directory (despite newer versions of POSIX declaring
that this is a bug).
To ensure this continues to work, the NFSv4 readdir implementation requests
the 'mounted-on-fileid' from the server.

However, readdirplus also needs to instantiate an inode for this entry, and
for that, we also need to request the real fileid as per this patch.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4xdr.c
include/linux/nfs_xdr.h