diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-04-23 19:32:03 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-04-28 13:54:27 -0400 |
commit | c71206a7b4e829601e44c49d8a0f4df0fdfe9302 (patch) | |
tree | 429fc7b6b1a50a7dde2a9b59bbe2df9bd3ea23e7 /fs/nfsd/nfsctl.c | |
parent | 0b7c2f6fc7e06867885c7b0f256ff5bd494e0653 (diff) |
NFSD: Note an additional requirement when passing TCP sockets to portlist
User space must call listen(3) on SOCK_STREAM sockets passed into
/proc/fs/nfsd/portlist, otherwise that listener is ignored. Document
this.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-rw-r--r-- | fs/nfsd/nfsctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index b6a847faa0bb..d491fa9df9bd 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
@@ -1061,7 +1061,9 @@ static ssize_t __write_ports(struct file *file, char *buf, size_t size) | |||
1061 | * buf: C string containing an unsigned | 1061 | * buf: C string containing an unsigned |
1062 | * integer value representing a bound | 1062 | * integer value representing a bound |
1063 | * but unconnected socket that is to be | 1063 | * but unconnected socket that is to be |
1064 | * used as an NFSD listener | 1064 | * used as an NFSD listener; listen(3) |
1065 | * must be called for a SOCK_STREAM | ||
1066 | * socket, otherwise it is ignored | ||
1065 | * size: non-zero length of C string in @buf | 1067 | * size: non-zero length of C string in @buf |
1066 | * Output: | 1068 | * Output: |
1067 | * On success: NFS service is started; | 1069 | * On success: NFS service is started; |