Date: Mon, 10 Mar 1997 23:31:49 -0500 (EST) From: lennox@cs.columbia.edu To: FreeBSD-gnats-submit@freebsd.org Subject: docs/2945: mount(2) and /usr/include/sys/mount.h disagree Message-ID: <199703110431.XAA00799@bmt.cs.columbia.edu> Resent-Message-ID: <199703110440.UAA25781@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 2945
>Category: docs
>Synopsis: mount(2) and /usr/include/sys/mount.h disagree
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Mar 10 20:40:02 PST 1997
>Last-Modified:
>Originator: Jonathan Lennox
>Organization:
Columbia University Computer Science
>Release: FreeBSD 2.2-970205-GAMMA i386
>Environment:
(Not really relevant)
>Description:
mount(2) and /usr/include/sys/mount.h disagree about the type of
(struct nfs_args).fh.
"man 2 mount" contains the following section:
MOUNT_NFS
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 */
};
/usr/include/sys/mount.h by contrast has this:
/*
* Arguments to mount NFS
*/
struct nfs_args {
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 */
};
The type of the "fh" member has changed from nfsv2fh_t* to u_char*
sometime recently, apparently (the former type no longer appears in
the header file).
>How-To-Repeat:
man 2 mount
more /usr/include/sys/mount.h
>Fix:
Update /usr/share/man/man2/mount.2.gz to reflect the new type
of the fh member.
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703110431.XAA00799>
