Skip to content
Commit 28331a46 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 1bd714f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment