Home
last modified time | relevance | path

Searched hist:"261758 b5c3dfeac73ca364c47ed538f5ce4250ee" (Results 1 – 1 of 1) sorted by relevance

/linux/fs/nfsd/
H A Dnfsctl.cdiff 261758b5c3dfeac73ca364c47ed538f5ce4250ee Fri Apr 24 01:33:18 CEST 2009 Chuck Lever <chuck.lever@oracle.com> NFSD: Stricter buffer size checking in write_versions()

While it's not likely today that there are enough NFS versions to
overflow the output buffer in write_versions(), we should be more
careful about detecting the end of the buffer.

The number of NFS versions will only increase as NFSv4 minor versions
are added.

Note that this API doesn't behave the same as portlist. Here we
attempt to display as many versions as will fit in the buffer, and do
not provide any indication that an overflow would have occurred. I
don't have any good rationale for that.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>