]> git.neil.brown.name Git - history.git/commit
[PATCH] kNFSd: NFSv4: tweak nfsd_readdir() for NFSv4
authorKendrick M. Smith <kmsmith@umich.edu>
Fri, 23 Aug 2002 04:38:37 +0000 (21:38 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 23 Aug 2002 04:38:37 +0000 (21:38 -0700)
commit10715329b681d7238053de1ee805835fcdbd715f
tree59c6d245fb1855b67fc6f2200fe54a1dd2bb1a2a
parentc9f192bdf9dc82515a81dbc65ae89308ba0c056d
[PATCH] kNFSd: NFSv4: tweak nfsd_readdir() for NFSv4

This patch makes three small changes to nfsd_readdir().

First, the 'filldir' routine for NFSv4 may return an arbitrary error,
which should become the return value for nfsd_readdir().  I implemented
this by adding an 'nfserr' field to the 'struct readdir_cd'.

Second, in NFSv4 the caller of nfsd_readdir() will specify an attribute
bitmap, which must be communicated to the 'filldir' routine.  I implemented
this by adding a @bitmap parameter to nfsd_readdir() and a corresponding
field in the 'struct readdir_cd'.  (The bitmap is not interpreted in any
way by nfsd_readdir().)

Finally, NFSv4 defines a new error nfserr_readdir_nospc, which indicates
that there was not enough buffer space to encode a single entry.
fs/nfsd/nfs3proc.c
fs/nfsd/nfsproc.c
fs/nfsd/vfs.c
include/linux/nfsd/nfsd.h