提交 c71206a7 编写于 作者: C Chuck Lever 提交者: J. Bruce Fields

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: NChuck Lever <chuck.lever@oracle.com>
Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
上级 0b7c2f6f
...@@ -1061,7 +1061,9 @@ static ssize_t __write_ports(struct file *file, char *buf, size_t size) ...@@ -1061,7 +1061,9 @@ static ssize_t __write_ports(struct file *file, char *buf, size_t size)
* buf: C string containing an unsigned * buf: C string containing an unsigned
* integer value representing a bound * integer value representing a bound
* but unconnected socket that is to be * but unconnected socket that is to be
* used as an NFSD listener * used as an NFSD listener; listen(3)
* must be called for a SOCK_STREAM
* socket, otherwise it is ignored
* size: non-zero length of C string in @buf * size: non-zero length of C string in @buf
* Output: * Output:
* On success: NFS service is started; * On success: NFS service is started;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册