To: None <gnats-bugs@NetBSD.ORG>
From: None <millert@cs.colorado.edu>
List: netbsd-bugs
Date: 02/25/1996 16:34:26
>Number: 2125
>Category: misc
>Synopsis: patch to make mount.2 manpage agree with <sys/mount.h>
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 25 18:50:01 1996
>Last-Modified:
>Originator: Todd C. Miller
>Organization:
Todd C. Miller Sysadmin--University of Colorado Todd.Miller@cs.colorado.edu
>Release: NetBSD-current as of 2/24/96
>Environment:
System: NetBSD scrap.cs.colorado.edu 1.1A NetBSD 1.1A (PEECEE) #0: Sat Feb 24 13:00:25 EST 1996 millert@scrap.cs.colorado.edu:/usr/src/sys/arch/i386/compile/PEECEE i386
>Description:
The mount.2 man page is out of date wrt the stuctures
in <sys/mount.h>
>How-To-Repeat:
man 2 mount
>Fix:
A patch follows:
*** mount.2.DIST Fri Feb 9 05:23:02 1996
--- mount.2 Sun Feb 25 16:30:21 1996
***************
*** 87,92 ****
--- 87,94 ----
Do not honor setuid or setgid bits on files when executing them.
.It Dv MNT_NODEV
Do not interpret special files on the file system.
+ .It Dv MNT_UNION
+ Union with underlying filesystem instead of obscuring it.
.It Dv MNT_SYNCHRONOUS
All I/O to the file system should be done synchronously.
.El
***************
*** 115,146 ****
.Dv MOUNT_FFS
.Bd -literal -offset indent -compact
struct ufs_args {
! char *fspec; /* Block special file to mount */
! int exflags; /* export related flags */
! uid_t exroot; /* mapping for root uid */
};
.Ed
.Pp
.Dv MOUNT_NFS
.Bd -literal -offset indent -compact
struct nfs_args {
! struct sockaddr_in *addr; /* file server address */
! nfsv2fh_t *fh; /* File handle to be mounted */
! int flags; /* flags */
! int wsize; /* write size in bytes */
! int rsize; /* read size in bytes */
! int timeo; /* initial timeout 0.1 secs */
! int retrans; /* times to retry send */
! char *hostname; /* server's name */
};
.Ed
.Pp
.Dv MOUNT_MFS
.Bd -literal -offset indent -compact
struct mfs_args {
! char *name; /* name of backing process */
! caddr_t base; /* base address of the file system */
! u_long size; /* size of the file system */
};
.Ed
.Pp
--- 117,158 ----
.Dv MOUNT_FFS
.Bd -literal -offset indent -compact
struct ufs_args {
! char *fspec; /* block special file to mount */
! struct export_args export; /* network export information */
};
.Ed
.Pp
.Dv MOUNT_NFS
.Bd -literal -offset indent -compact
struct nfs_args {
! int version; /* args structure version */
! struct sockaddr *addr; /* file server address */
! int addrlen; /* length of address */
! int sotype; /* Socket type */
! int proto; /* and Protocol */
! u_char *fh; /* File handle to be mounted */
! int fhsize; /* Size, in bytes, of fh */
! int flags; /* flags */
! int wsize; /* write size in bytes */
! int rsize; /* read size in bytes */
! int readdirsize; /* readdir size in bytes */
! int timeo; /* initial timeout in .1 secs */
! int retrans; /* times to retry send */
! int maxgrouplist; /* Max. size of group list */
! int readahead; /* # of blocks to readahead */
! int leaseterm; /* Term (sec) of lease */
! int deadthresh; /* Retrans threshold */
! char *hostname; /* server's name */
};
.Ed
.Pp
.Dv MOUNT_MFS
.Bd -literal -offset indent -compact
struct mfs_args {
! char *fspec; /* name to export for statfs */
! struct export_args export; /* if we can export an MFS */
! caddr_t base; /* base of file system in mem */
! u_long size; /* size of file system */
};
.Ed
.Pp
>Audit-Trail:
>Unformatted: