Subject: misc/16193: MFS Examples: newfs(8) v.s. mount(8)
To: None <>
From: Brian A. Seklecki <>
List: netbsd-bugs
Date: 04/04/2002 01:46:57
>Number:         16193
>Category:       misc
>Synopsis:       MFS Examples: newfs(8) v.s. mount(8)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 03 22:48:00 PST 2002
>Originator:     Brian A. Seklecki
>Release:        NetBSD 1.5.3_RC1
System: NetBSD hurt 1.5.3_RC1 NetBSD 1.5.3_RC1 (HURT) #0: Thu Mar 28 16:56:48 EST 2002 root@hurt:/usr/src/sys/sys/arch/sparc/compile/HURT sparc
Architecture: sparc
Machine: sparc
	The man page for mount_mfs (which is actually newfs(8)) doesn't have an example
	section.  Mount(8) has one, but the example is wrong and isn't in the example section. 
	Decide to MFS mount /tmp for the first time
	Examine the newfs/mount_mfs man page
	Wonder why there isn't an 'example' section (MFS has been around since 4.4BSD)
	Revert to examples from Google/NetBSD mailing list archives
	Realize later that mount(8) has an example but the 'special' device doesn't exist
	Patch for:

	--- mount.8.orig	Thu Apr  4 01:15:13 2002
	+++ mount.8	Thu Apr  4 01:31:12 2002
	@@ -220,14 +220,14 @@
	 Options that take a value are specified using the syntax -option=value.
	 For example, the mount command:
	 .Bd -literal -offset indent
	-mount -t mfs -o nosuid,-N,-s=4000 /dev/dk0b /tmp
	+mount -t mfs -o nosuid,-N,-s=32m /dev/rsd0a /tmp
	 to execute the equivalent of:
	 .Bd -literal -offset indent
	-/sbin/mount_mfs -o nosuid -N -s 4000 /dev/dk0b /tmp
	+/sbin/mount_mfs -o nosuid -N -s 32m /dev/rsd0a /tmp
	 .It Fl r
	 The file system is to be mounted read-only.
	@@ -332,6 +332,9 @@
	 .It Tn NFS
	 mount nfs-server-host:/directory/path /mount-point
	+.It Tn MFS (32 megabyte)
	+mount -t mfs -o nosuid,-N,-s=32m /dev/rsd0a /tmp
	 The "noauto" directive in

	Patch for:

	--- newfs.8.orig        Thu Apr  4 01:35:09 2002
	+++ newfs.8     Thu Apr  4 01:32:56 2002
	@@ -291,6 +291,9 @@
	 .Xr mount 8
	 man page for possible options and their meanings.
	+See mount(8) for examples on how to use 
	+.Nm mount_mfs.
	 If the file system will be exported over NFS, the
	 .Xr fsirand 8