• Trond Myklebust's avatar
    NFSv3: Use the readdir fileid as the mounted-on-fileid · 1ae04b25
    Trond Myklebust authored
    When we call readdirplus, set the fileid normally returned by readdir
    as the mounted-on-fileid, since that is commonly the case if there is
    a mountpoint. To ensure that we get it right, we only set the flag if
    the readdir fileid differs from the one returned in the readdirplus
    attributes.
    
    This again means that we can avoid the issues described in commit
    2ef47eb1 ("NFS: Fix use of nfs_attr_use_mounted_on_fileid()"),
    which only fixed NFSv4.
    Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
    1ae04b25
nfs3xdr.c 54.9 KB