• J. Bruce Fields's avatar
    nfsd: fix failure to set eof in readdir in some situations · 8d7c4203
    J. Bruce Fields authored
    Before 14f7dd63 "[PATCH] Copy XFS
    readdir hack into nfsd code", readdir_cd->err was reset to eof before
    each call to vfs_readdir; afterwards, it is set only once.  Similarly,
    c002a6c7 "[PATCH] Optimise NFS readdir
    hack slightly", can cause us to exit without nfserr_eof set.  Fix this.
    
    This ensures the "eof" bit is set when needed in readdir replies.  (The
    particular case I saw was an nfsv4 readdir of an empty directory, which
    returned with no entries (the protocol requires "." and ".." to be
    filtered out), but with eof unset.)
    
    Cc: David Woodhouse <David.Woodhouse@intel.com>
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
    8d7c4203
Name
Last commit
Last update
..
Makefile Loading commit data...
auth.c Loading commit data...
auth.h Loading commit data...
export.c Loading commit data...
lockd.c Loading commit data...
nfs2acl.c Loading commit data...
nfs3acl.c Loading commit data...
nfs3proc.c Loading commit data...
nfs3xdr.c Loading commit data...
nfs4acl.c Loading commit data...
nfs4callback.c Loading commit data...
nfs4idmap.c Loading commit data...
nfs4proc.c Loading commit data...
nfs4recover.c Loading commit data...
nfs4state.c Loading commit data...
nfs4xdr.c Loading commit data...
nfscache.c Loading commit data...
nfsctl.c Loading commit data...
nfsfh.c Loading commit data...
nfsproc.c Loading commit data...
nfssvc.c Loading commit data...
nfsxdr.c Loading commit data...
stats.c Loading commit data...
vfs.c Loading commit data...