Date: Thu, 15 Mar 2001 05:22:06 +0000 From: Tony Finch <dot@dotat.at> To: FreeBSD-gnats-submit@freebsd.org Subject: kern/25834: incorrect documentation of struct statfs in statfs(2) Message-ID: <E14dQD8-0000At-00@hand.dotat.at>
next in thread | raw e-mail | index | archive | help
>Number: 25834
>Category: kern
>Synopsis: incorrect documentation of struct statfs in statfs(2)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 15 11:20:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Tony Finch <dot@dotat.at>
>Release: FreeBSD 4.3-BETA i386
>Organization:
Covalent Technologies, Inc.
>Environment:
System: FreeBSD hand.dotat.at 4.3-BETA FreeBSD 4.3-BETA #6: Thu Mar 15 04:57:36 GMT 2001 fanf@hand.dotat.at:/FreeBSD/releng4/sys/compile/DELL-Latitude-CSx i386
>Description:
The f_syncreads and f_asyncreads entries are missing from the man page.
>How-To-Repeat:
>Fix:
This also tidies up the formatting a bit and omits all the padding
entries.
Index: statfs.2
===================================================================
RCS file: /home/ncvs/src/lib/libc/sys/statfs.2,v
retrieving revision 1.9.2.4
diff -u -r1.9.2.4 statfs.2
--- statfs.2 2000/12/29 14:44:54 1.9.2.4
+++ statfs.2 2001/03/15 05:19:08
@@ -67,7 +67,6 @@
#define MNAMELEN 90 /* length of buffer for returned name */
struct statfs {
-long f_spare2; /* placeholder */
long f_bsize; /* fundamental file system block size */
long f_iosize; /* optimal transfer block size */
long f_blocks; /* total data blocks in file system */
@@ -82,8 +81,10 @@
long f_syncwrites; /* count of sync writes since mount */
long f_asyncwrites; /* count of async writes since mount */
char f_fstypename[MFSNAMELEN];/* fs type name */
-char f_mntonname[MNAMELEN]; /* mount point */
-char f_mntfromname[MNAMELEN]; /* mounted filesystem */
+char f_mntonname[MNAMELEN]; /* mount point */
+long f_syncreads; /* count of sync reads since mount */
+long f_asyncreads; /* count of async reads since mount */
+char f_mntfromname[MNAMELEN]; /* mounted filesystem */
};
.Ed
The flags that may be returned include:
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E14dQD8-0000At-00>
