svn commit: r318999 - head/sys/boot/common

Baptiste Daroussin bapt at FreeBSD.org
Sat May 27 18:46:02 UTC 2017


Author: bapt
Date: Sat May 27 18:46:00 2017
New Revision: 318999
URL: https://svnweb.freebsd.org/changeset/base/318999

Log:
  Update the comments concerning net_parse_rootpath to reflect what it is now
  really doing
  
  Reported by:	rgrimes
  Reviewed by:	rgrimes
  Differential Revision:	https://reviews.freebsd.org/D10959

Modified:
  head/sys/boot/common/dev_net.c

Modified: head/sys/boot/common/dev_net.c
==============================================================================
--- head/sys/boot/common/dev_net.c	Sat May 27 18:01:14 2017	(r318998)
+++ head/sys/boot/common/dev_net.c	Sat May 27 18:46:00 2017	(r318999)
@@ -367,8 +367,20 @@ net_print(int verbose)
 }
 
 /*
- * Strip the server's address off of the rootpath if present and return it in
- * network byte order, leaving just the pathname part in the global rootpath.
+ * Parses the rootpath if present
+ *
+ * The rootpath format can be in the form
+ * <scheme>://ip/path
+ * <scheme>:/path
+ *
+ * For compatibility with previous behaviour it also accepts as an NFS scheme
+ * ip:/path
+ * /path
+ *
+ * If an ip is set it returns it in network byte order.
+ * The default scheme defined in the global netproto, if not set it defaults to
+ * NFS.
+ * It leaves just the pathname in the global rootpath.
  */
 uint32_t
 net_parse_rootpath()


More information about the svn-src-head mailing list