svn commit: r300160 - head/sys/fs/nfsclient

Gleb Smirnoff glebius at FreeBSD.org
Wed May 18 17:40:55 UTC 2016


Author: glebius
Date: Wed May 18 17:40:53 2016
New Revision: 300160
URL: https://svnweb.freebsd.org/changeset/base/300160

Log:
  Comment fix: the getsockaddr() is actually meant here.
  
  Reviewed by:	rmacklem

Modified:
  head/sys/fs/nfsclient/nfs_clvfsops.c

Modified: head/sys/fs/nfsclient/nfs_clvfsops.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clvfsops.c	Wed May 18 17:08:29 2016	(r300159)
+++ head/sys/fs/nfsclient/nfs_clvfsops.c	Wed May 18 17:40:53 2016	(r300160)
@@ -841,7 +841,7 @@ nfs_mount_parse_from(struct vfsoptlist *
  * mount system call
  * It seems a bit dumb to copyinstr() the host and path here and then
  * bcopy() them in mountnfs(), but I wanted to detect errors before
- * doing the sockargs() call because sockargs() allocates an mbuf and
+ * doing the getsockaddr() call because getsockaddr() allocates an mbuf and
  * an error after that means that I have to release the mbuf.
  */
 /* ARGSUSED */
@@ -1228,7 +1228,7 @@ nfs_mount(struct mount *mp)
 			goto out;
 		bzero(&hst[hstlen], MNAMELEN - hstlen);
 		args.hostname = hst;
-		/* sockargs() call must be after above copyin() calls */
+		/* getsockaddr() call must be after above copyin() calls */
 		error = getsockaddr(&nam, (caddr_t)args.addr,
 		    args.addrlen);
 		if (error != 0)
@@ -1332,7 +1332,7 @@ out:
  * mount system call
  * It seems a bit dumb to copyinstr() the host and path here and then
  * bcopy() them in mountnfs(), but I wanted to detect errors before
- * doing the sockargs() call because sockargs() allocates an mbuf and
+ * doing the getsockaddr() call because getsockaddr() allocates an mbuf and
  * an error after that means that I have to release the mbuf.
  */
 /* ARGSUSED */


More information about the svn-src-head mailing list