statfs.2 (22526) | statfs.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.\" @(#)statfs.2 8.3 (Berkeley) 2/11/94 | 32.\" @(#)statfs.2 8.5 (Berkeley) 5/24/95 |
33.\" | 33.\" |
34.Dd February 11, 1994 | 34.Dd May 24, 1995 |
35.Dt STATFS 2 36.Os 37.Sh NAME 38.Nm statfs 39.Nd get file system statistics 40.Sh SYNOPSIS 41.Fd #include <sys/param.h> 42.Fd #include <sys/mount.h> --- 33 unchanged lines hidden (view full) --- 76uid_t f_owner; /* user that mounted the filesystem */ 77int f_type; /* type of filesystem (see below) */ 78int f_flags; /* copy of mount flags */ 79long f_spare[2]; /* spare for later */ 80char f_fstypename[MFSNAMELEN];/* fs type name */ 81char f_mntonname[MNAMELEN]; /* mount point */ 82char f_mntfromname[MNAMELEN]; /* mounted filesystem */ 83}; | 35.Dt STATFS 2 36.Os 37.Sh NAME 38.Nm statfs 39.Nd get file system statistics 40.Sh SYNOPSIS 41.Fd #include <sys/param.h> 42.Fd #include <sys/mount.h> --- 33 unchanged lines hidden (view full) --- 76uid_t f_owner; /* user that mounted the filesystem */ 77int f_type; /* type of filesystem (see below) */ 78int f_flags; /* copy of mount flags */ 79long f_spare[2]; /* spare for later */ 80char f_fstypename[MFSNAMELEN];/* fs type name */ 81char f_mntonname[MNAMELEN]; /* mount point */ 82char f_mntfromname[MNAMELEN]; /* mounted filesystem */ 83}; |
84/* 85* File system types. 86*/ 87#define MOUNT_UFS 1 /* Fast Filesystem */ 88#define MOUNT_NFS 2 /* Sun-compatible Network Filesystem */ 89#define MOUNT_MFS 3 /* Memory-based Filesystem */ 90#define MOUNT_MSDOS 4 /* MS/DOS Filesystem */ 91#define MOUNT_LFS 5 /* Log-based Filesystem */ 92#define MOUNT_LOFS 6 /* Loopback Filesystem */ 93#define MOUNT_FDESC 7 /* File Descriptor Filesystem */ 94#define MOUNT_PORTAL 8 /* Portal Filesystem */ 95#define MOUNT_NULL 9 /* Minimal Filesystem Layer */ 96#define MOUNT_UMAP 10 /* Uid/Gid Remapping Filesystem */ 97#define MOUNT_KERNFS 11 /* Kernel Information Filesystem */ 98#define MOUNT_PROCFS 12 /* /proc Filesystem */ 99#define MOUNT_AFS 13 /* Andrew Filesystem */ 100#define MOUNT_CD9660 14 /* ISO9660 (aka CDROM) Filesystem */ 101#define MOUNT_UNION 15 /* Union (translucent) Filesystem */ 102#define MOUNT_DEVFS 16 /* existing device Filesystem */ 103#define MOUNT_EXT2FS 17 /* Linux EXT2FS */ 104#define MOUNT_TFS 18 /* Netcon Novell filesystem */ 105#define MOUNT_MAXTYPE 18 | |
106.Ed | 84.Ed |
85The flags that may be returned include: 86.Bl -tag -width MNT_ASYNCHRONOUS 87.It Dv MNT_RDONLY 88The filesystem is mounted read-only; 89Even the super-user may not write on it. 90.It Dv MNT_NOEXEC 91Files may not be executed from the filesystem. 92.It Dv MNT_NOSUID 93Setuid and setgid bits on files are not honored when they are executed. 94.It Dv MNT_NODEV 95Special files in the filesystem may not be opened. 96.It Dv MNT_SYNCHRONOUS 97All I/O to the filesystem is done synchronously. 98.It Dv MNT_ASYNCHRONOUS 99No filesystem I/O is done synchronously. 100.It Dv MNT_LOCAL 101The filesystem resides locally. 102.It Dv MNT_QUOTA 103The filesystem has quotas enabled on it. 104.It Dv MNT_ROOTFS 105Identifies the root filesystem. 106.It Dv MNT_EXRDONLY 107The filesystem is exported read-only. 108.It Dv MNT_EXPORTED 109The filesystem is exported for both reading and writing. 110.It Dv MNT_DEFEXPORTED 111The filesystem is exported for both reading and writing to any Internet host. 112.It Dv MNT_EXPORTANON 113The filesystem maps all remote accesses to the anonymous user. 114.It Dv MNT_EXKERB 115The filesystem is exported with Kerberos uid mapping. 116.El |
|
107.Pp 108Fields that are undefined for a particular file system are set to -1. 109.Fn Fstatfs 110returns the same information about an open file referenced by descriptor 111.Fa fd . 112.Sh RETURN VALUES 113Upon successful completion, a value of 0 is returned. 114Otherwise, -1 is returned and the global variable --- 57 unchanged lines hidden --- | 117.Pp 118Fields that are undefined for a particular file system are set to -1. 119.Fn Fstatfs 120returns the same information about an open file referenced by descriptor 121.Fa fd . 122.Sh RETURN VALUES 123Upon successful completion, a value of 0 is returned. 124Otherwise, -1 is returned and the global variable --- 57 unchanged lines hidden --- |