Deleted Added
full compact
getfsstat.2 (22526) getfsstat.2 (23660)
1.\" Copyright (c) 1989, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 15 unchanged lines hidden (view full) ---

24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
1.\" Copyright (c) 1989, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 15 unchanged lines hidden (view full) ---

24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)getfsstat.2 8.1 (Berkeley) 6/9/93
32.\" @(#)getfsstat.2 8.3 (Berkeley) 5/25/95
33.\"
33.\"
34.Dd June 9, 1993
34.Dd May 25, 1995
35.Dt GETFSSTAT 2
36.Os
37.Sh NAME
38.Nm getfsstat
39.Nd get list of all mounted filesystems
40.Sh SYNOPSIS
41.Fd #include <sys/param.h>
42.Fd #include <sys/ucred.h>

--- 30 unchanged lines hidden (view full) ---

73 uid_t f_owner; /* user that mounted the filesystem */
74 int f_type; /* type of filesystem (see below) */
75 int f_flags; /* copy of mount flags */
76 long f_spare[2]; /* spare for later */
77 char f_fstypename[MFSNAMELEN];/* fs type name */
78 char f_mntonname[MNAMELEN];/* directory on which mounted */
79 char f_mntfromname[MNAMELEN];/* mounted filesystem */
80};
35.Dt GETFSSTAT 2
36.Os
37.Sh NAME
38.Nm getfsstat
39.Nd get list of all mounted filesystems
40.Sh SYNOPSIS
41.Fd #include <sys/param.h>
42.Fd #include <sys/ucred.h>

--- 30 unchanged lines hidden (view full) ---

73 uid_t f_owner; /* user that mounted the filesystem */
74 int f_type; /* type of filesystem (see below) */
75 int f_flags; /* copy of mount flags */
76 long f_spare[2]; /* spare for later */
77 char f_fstypename[MFSNAMELEN];/* fs type name */
78 char f_mntonname[MNAMELEN];/* directory on which mounted */
79 char f_mntfromname[MNAMELEN];/* mounted filesystem */
80};
81
82/*
83 * File system types.
84 */
85#define MOUNT_NONE 0
86#define MOUNT_UFS 1 /* Fast Filesystem */
87#define MOUNT_NFS 2 /* Sun-compatible Network Filesystem */
88#define MOUNT_MFS 3 /* Memory-based Filesystem */
89#define MOUNT_MSDOS 4 /* MS/DOS Filesystem */
90#define MOUNT_LFS 5 /* Log-based Filesystem */
91#define MOUNT_LOFS 6 /* Loopback Filesystem */
92#define MOUNT_FDESC 7 /* File Descriptor Filesystem */
93#define MOUNT_PORTAL 8 /* Portal Filesystem */
94#define MOUNT_NULL 9 /* Minimal Filesystem Layer */
95#define MOUNT_UMAP 10 /* User/Group Identifier Remapping Filesystem */
96#define MOUNT_KERNFS 11 /* Kernel Information Filesystem */
97#define MOUNT_PROCFS 12 /* /proc Filesystem */
98#define MOUNT_AFS 13 /* Andrew Filesystem */
99#define MOUNT_CD9660 14 /* ISO9660 (aka CDROM) Filesystem */
100#define MOUNT_UNION 15 /* Union (translucent) Filesystem */
101#define MOUNT_DEVFS 16 /* existing device Filesystem */
102#define MOUNT_EXT2FS 17 /* Linux EXT2FS */
103#define MOUNT_TFS 18 /* Netcon Novell filesystem */
104#define MOUNT_MAXTYPE 18
105.Ed
106.Pp
81.Ed
82.Pp
83The flags that may be returned include:
84.Bl -tag -width MNT_ASYNCHRONOUS
85.It Dv MNT_RDONLY
86The filesystem is mounted read-only;
87Even the super-user may not write on it.
88.It Dv MNT_NOEXEC
89Files may not be executed from the filesystem.
90.It Dv MNT_NOSUID
91Setuid and setgid bits on files are not honored when they are executed.
92.It Dv MNT_NODEV
93Special files in the filesystem may not be opened.
94.It Dv MNT_SYNCHRONOUS
95All I/O to the filesystem is done synchronously.
96.It Dv MNT_ASYNCHRONOUS
97No filesystem I/O is done synchronously.
98.It Dv MNT_LOCAL
99The filesystem resides locally.
100.It Dv MNT_QUOTA
101The filesystem has quotas enabled on it.
102.It Dv MNT_ROOTFS
103Identifies the root filesystem.
104.It Dv MNT_EXRDONLY
105The filesystem is exported read-only.
106.It Dv MNT_EXPORTED
107The filesystem is exported for both reading and writing.
108.It Dv MNT_DEFEXPORTED
109The filesystem is exported for both reading and writing to any Internet host.
110.It Dv MNT_EXPORTANON
111The filesystem maps all remote accesses to the anonymous user.
112.It Dv MNT_EXKERB
113The filesystem is exported with Kerberos uid mapping.
114.El
115.Pp
107Fields that are undefined for a particular filesystem are set to -1.
108The buffer is filled with an array of
109.Fa fsstat
110structures, one for each mounted filesystem
111up to the size specified by
112.Fa bufsize .
113.Pp
114If

--- 48 unchanged lines hidden ---
116Fields that are undefined for a particular filesystem are set to -1.
117The buffer is filled with an array of
118.Fa fsstat
119structures, one for each mounted filesystem
120up to the size specified by
121.Fa bufsize .
122.Pp
123If

--- 48 unchanged lines hidden ---