Sync wi/ reality.

This commit is contained in:
enami 2000-02-28 14:21:46 +00:00
parent f5419e2136
commit 354b4bc5c1
2 changed files with 52 additions and 13 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: getfsstat.2,v 1.14 1999/12/02 21:42:36 kleink Exp $
.\" $NetBSD: getfsstat.2,v 1.15 2000/02/28 14:21:46 enami Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -55,14 +55,14 @@ is a pointer to an array of
.Nm statfs
structures defined as follows:
.Bd -literal
typedef struct { int32_t val[2]; } fsid_t;
typedef struct { int32_t val[2]; } fsid_t; /* file system id type */
#define MFSNAMELEN 16 /* length of fs type name, including nul */
#define MNAMELEN 90 /* length of buffer for returned name */
struct statfs {
short f_type; /* type of file system (unused; zero) */
u_short f_flags; /* copy of mount flags */
u_short f_oflags; /* deprecated copy of mount flags */
long f_bsize; /* fundamental file system block size */
long f_iosize; /* optimal transfer block size */
long f_blocks; /* total data blocks in file system */
@ -72,7 +72,10 @@ struct statfs {
long f_ffree; /* free file nodes in fs */
fsid_t f_fsid; /* file system id */
uid_t f_owner; /* user that mounted the file system */
long f_spare[4]; /* spare for later */
long f_flags; /* copy of mount flags */
long f_syncwrites; /* count of sync writes since mount */
long f_asyncwrites; /* count of async writes since mount */
long f_spare[1]; /* spare for later */
char f_fstypename[MFSNAMELEN]; /* fs type name */
char f_mntonname[MNAMELEN]; /* directory on which mounted */
char f_mntfromname[MNAMELEN]; /* mounted file system */
@ -80,7 +83,7 @@ struct statfs {
.Ed
.Pp
The flags that may be returned include:
.Bl -tag -width MNT_ASYNCHRONOUS
.Bl -tag -width MNT_SYNCHRONOUS
.It Dv MNT_RDONLY
The filesystem is mounted read-only;
Even the super-user may not write on it.
@ -92,8 +95,20 @@ Setuid and setgid bits on files are not honored when they are executed.
Special files in the filesystem may not be opened.
.It Dv MNT_SYNCHRONOUS
All I/O to the filesystem is done synchronously.
.It Dv MNT_ASYNCHRONOUS
.It Dv MNT_ASYNC
No filesystem I/O is done synchronously.
.It Dv MNT_UNION
Union with underlying filesystem.
.It Dv MNT_NOCOREDUMP
Don't write core dumps to this file system.
.It Dv MNT_NOATIME
Never update access times.
.It Dv MNT_SYMPERM
Recognize symbolic link permission.
.It Dv MNT_NODEVMTIME
Never update mod. times for device files.
.It Dv MNT_SOFTDEP
Use soft dependencies.
.It Dv MNT_LOCAL
The filesystem resides locally.
.It Dv MNT_QUOTA
@ -110,6 +125,10 @@ The filesystem is exported for both reading and writing to any Internet host.
The filesystem maps all remote accesses to the anonymous user.
.It Dv MNT_EXKERB
The filesystem is exported with Kerberos uid mapping.
.It Dv MNT_EXNORESPORT
Don't enforce reserved ports (NFS).
.It Dv MNT_EXPUBLIC
Public export (WebNFS).
.El
.Pp
Fields that are undefined for a particular filesystem are set to -1.

View File

@ -1,4 +1,4 @@
.\" $NetBSD: statfs.2,v 1.17 1999/12/02 21:42:39 kleink Exp $
.\" $NetBSD: statfs.2,v 1.18 2000/02/28 14:21:46 enami Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -59,14 +59,14 @@ is a pointer to a
.Nm statfs
structure defined as follows:
.Bd -literal
typedef struct { int32_t val[2]; } fsid_t;
typedef struct { int32_t val[2]; } fsid_t; /* file system id type */
#define MFSNAMELEN 16 /* length of fs type name, including nul */
#define MNAMELEN 32 /* length of buffer for returned name */
#define MNAMELEN 90 /* length of buffer for returned name */
struct statfs {
short f_type; /* type of file system (unused; zero) */
u_short f_flags; /* copy of mount flags */
u_short f_oflags; /* deprecated copy of mount flags */
long f_bsize; /* fundamental file system block size */
long f_iosize; /* optimal transfer block size */
long f_blocks; /* total data blocks in file system */
@ -76,14 +76,18 @@ struct statfs {
long f_ffree; /* free file nodes in fs */
fsid_t f_fsid; /* file system id */
uid_t f_owner; /* user that mounted the file system */
long f_spare[4]; /* spare for later */
long f_flags; /* copy of mount flags */
long f_syncwrites; /* count of sync writes since mount */
long f_asyncwrites; /* count of async writes since mount */
long f_spare[1]; /* spare for later */
char f_fstypename[MFSNAMELEN]; /* fs type name */
char f_mntonname[MNAMELEN]; /* directory on which mounted */
char f_mntfromname[MNAMELEN]; /* mounted file system */
};
.Ed
.Pp
The flags that may be returned include:
.Bl -tag -width MNT_ASYNCHRONOUS
.Bl -tag -width MNT_SYNCHRONOUS
.It Dv MNT_RDONLY
The filesystem is mounted read-only;
Even the super-user may not write on it.
@ -95,8 +99,20 @@ Setuid and setgid bits on files are not honored when they are executed.
Special files in the filesystem may not be opened.
.It Dv MNT_SYNCHRONOUS
All I/O to the filesystem is done synchronously.
.It Dv MNT_ASYNCHRONOUS
.It Dv MNT_ASYNC
No filesystem I/O is done synchronously.
.It Dv MNT_UNION
Union with underlying filesystem.
.It Dv MNT_NOCOREDUMP
Don't write core dumps to this file system.
.It Dv MNT_NOATIME
Never update access times.
.It Dv MNT_SYMPERM
Recognize symbolic link permission.
.It Dv MNT_NODEVMTIME
Never update mod. times for device files.
.It Dv MNT_SOFTDEP
Use soft dependencies.
.It Dv MNT_LOCAL
The filesystem resides locally.
.It Dv MNT_QUOTA
@ -113,6 +129,10 @@ The filesystem is exported for both reading and writing to any Internet host.
The filesystem maps all remote accesses to the anonymous user.
.It Dv MNT_EXKERB
The filesystem is exported with Kerberos uid mapping.
.It Dv MNT_EXNORESPORT
Don't enforce reserved ports (NFS).
.It Dv MNT_EXPUBLIC
Public export (WebNFS).
.El
.Pp
Fields that are undefined for a particular file system are set to -1.