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. 9.\" 2. Redistributions in binary form must reproduce the above copyright 10.\" notice, this list of conditions and the following disclaimer in the 11.\" documentation and/or other materials provided with the distribution. 12.\" 3. All advertising materials mentioning features or use of this software 13.\" must display the following acknowledgement: 14.\" This product includes software developed by the University of 15.\" California, Berkeley and its contributors. 16.\" 4. Neither the name of the University nor the names of its contributors 17.\" may be used to endorse or promote products derived from this software 18.\" without specific prior written permission. 19.\" 20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 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.5 (Berkeley) 5/24/95
| 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. 9.\" 2. Redistributions in binary form must reproduce the above copyright 10.\" notice, this list of conditions and the following disclaimer in the 11.\" documentation and/or other materials provided with the distribution. 12.\" 3. All advertising materials mentioning features or use of this software 13.\" must display the following acknowledgement: 14.\" This product includes software developed by the University of 15.\" California, Berkeley and its contributors. 16.\" 4. Neither the name of the University nor the names of its contributors 17.\" may be used to endorse or promote products derived from this software 18.\" without specific prior written permission. 19.\" 20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 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.5 (Berkeley) 5/24/95
|
113.It Dv MNT_SYNCHRONOUS 114All I/O to the file system is done synchronously. 115.It Dv MNT_ASYNC 116No file system I/O is done synchronously. 117.It Dv MNT_SOFTDEP 118Soft updates being done (see 119.Xr ffs 7 ) . 120.It Dv MNT_SUIDDIR 121Special handling of SUID bit on directories. 122.It Dv MNT_UNION 123Union with underlying file system. 124.It Dv MNT_NOSYMFOLLOW 125Symbolic links are not followed. 126.It Dv MNT_NOCLUSTERR 127Read clustering is disabled. 128.It Dv MNT_NOCLUSTERW 129Write clustering is disabled. 130.\".It Dv MNT_JAILDEVFS 131.\"XXX 132.It Dv MNT_MULTILABEL 133Mandatory Access Control (MAC) support for individual objects 134(see 135.Xr mac 4 ) . 136.It Dv MNT_ACLS 137Access Control List (ACL) support enabled. 138.It Dv MNT_LOCAL 139The file system resides locally. 140.It Dv MNT_QUOTA 141The file system has quotas enabled on it. 142.It Dv MNT_ROOTFS 143Identifies the root file system. 144.It Dv MNT_EXRDONLY 145The file system is exported read-only. 146.It Dv MNT_NOATIME 147Updating of file access times is disabled. 148.It Dv MNT_USER 149The file system has been mounted by a user. 150.\".It Dv MNT_IGNORE 151.\"XXX 152.It Dv MNT_EXPORTED 153The file system is exported for both reading and writing. 154.It Dv MNT_DEFEXPORTED 155The file system is exported for both reading and writing to any Internet host. 156.It Dv MNT_EXPORTANON 157The file system maps all remote accesses to the anonymous user. 158.It Dv MNT_EXKERB 159The file system is exported with Kerberos uid mapping. 160.It Dv MNT_EXPUBLIC 161The file system is exported publicly (WebNFS). 162.El 163.Pp 164Fields that are undefined for a particular file system are set to -1. 165The 166.Fn fstatfs 167system call 168returns the same information about an open file referenced by descriptor 169.Fa fd . 170.Sh RETURN VALUES 171.Rv -std 172.Sh ERRORS 173The 174.Fn statfs 175system call 176fails if one or more of the following are true: 177.Bl -tag -width Er 178.It Bq Er ENOTDIR 179A component of the path prefix of 180.Fa path 181is not a directory. 182.It Bq Er ENAMETOOLONG 183The length of a component of 184.Fa path 185exceeds 255 characters, 186or the length of 187.Fa path 188exceeds 1023 characters. 189.It Bq Er ENOENT 190The file referred to by 191.Fa path 192does not exist. 193.It Bq Er EACCES 194Search permission is denied for a component of the path prefix of 195.Fa path . 196.It Bq Er ELOOP 197Too many symbolic links were encountered in translating 198.Fa path . 199.It Bq Er EFAULT 200The 201.Fa buf 202or 203.Fa path 204argument 205points to an invalid address. 206.It Bq Er EIO 207An 208.Tn I/O 209error occurred while reading from or writing to the file system. 210.El 211.Pp 212The 213.Fn fstatfs 214system call 215fails if one or more of the following are true: 216.Bl -tag -width Er 217.It Bq Er EBADF 218The 219.Fa fd 220argument 221is not a valid open file descriptor. 222.It Bq Er EFAULT 223The 224.Fa buf 225argument 226points to an invalid address. 227.It Bq Er EIO 228An 229.Tn I/O 230error occurred while reading from or writing to the file system. 231.El 232.Sh HISTORY 233The 234.Fn statfs 235system call first appeared in 236.Bx 4.4 .
| 111.It Dv MNT_SYNCHRONOUS 112All I/O to the file system is done synchronously. 113.It Dv MNT_ASYNC 114No file system I/O is done synchronously. 115.It Dv MNT_SOFTDEP 116Soft updates being done (see 117.Xr ffs 7 ) . 118.It Dv MNT_SUIDDIR 119Special handling of SUID bit on directories. 120.It Dv MNT_UNION 121Union with underlying file system. 122.It Dv MNT_NOSYMFOLLOW 123Symbolic links are not followed. 124.It Dv MNT_NOCLUSTERR 125Read clustering is disabled. 126.It Dv MNT_NOCLUSTERW 127Write clustering is disabled. 128.\".It Dv MNT_JAILDEVFS 129.\"XXX 130.It Dv MNT_MULTILABEL 131Mandatory Access Control (MAC) support for individual objects 132(see 133.Xr mac 4 ) . 134.It Dv MNT_ACLS 135Access Control List (ACL) support enabled. 136.It Dv MNT_LOCAL 137The file system resides locally. 138.It Dv MNT_QUOTA 139The file system has quotas enabled on it. 140.It Dv MNT_ROOTFS 141Identifies the root file system. 142.It Dv MNT_EXRDONLY 143The file system is exported read-only. 144.It Dv MNT_NOATIME 145Updating of file access times is disabled. 146.It Dv MNT_USER 147The file system has been mounted by a user. 148.\".It Dv MNT_IGNORE 149.\"XXX 150.It Dv MNT_EXPORTED 151The file system is exported for both reading and writing. 152.It Dv MNT_DEFEXPORTED 153The file system is exported for both reading and writing to any Internet host. 154.It Dv MNT_EXPORTANON 155The file system maps all remote accesses to the anonymous user. 156.It Dv MNT_EXKERB 157The file system is exported with Kerberos uid mapping. 158.It Dv MNT_EXPUBLIC 159The file system is exported publicly (WebNFS). 160.El 161.Pp 162Fields that are undefined for a particular file system are set to -1. 163The 164.Fn fstatfs 165system call 166returns the same information about an open file referenced by descriptor 167.Fa fd . 168.Sh RETURN VALUES 169.Rv -std 170.Sh ERRORS 171The 172.Fn statfs 173system call 174fails if one or more of the following are true: 175.Bl -tag -width Er 176.It Bq Er ENOTDIR 177A component of the path prefix of 178.Fa path 179is not a directory. 180.It Bq Er ENAMETOOLONG 181The length of a component of 182.Fa path 183exceeds 255 characters, 184or the length of 185.Fa path 186exceeds 1023 characters. 187.It Bq Er ENOENT 188The file referred to by 189.Fa path 190does not exist. 191.It Bq Er EACCES 192Search permission is denied for a component of the path prefix of 193.Fa path . 194.It Bq Er ELOOP 195Too many symbolic links were encountered in translating 196.Fa path . 197.It Bq Er EFAULT 198The 199.Fa buf 200or 201.Fa path 202argument 203points to an invalid address. 204.It Bq Er EIO 205An 206.Tn I/O 207error occurred while reading from or writing to the file system. 208.El 209.Pp 210The 211.Fn fstatfs 212system call 213fails if one or more of the following are true: 214.Bl -tag -width Er 215.It Bq Er EBADF 216The 217.Fa fd 218argument 219is not a valid open file descriptor. 220.It Bq Er EFAULT 221The 222.Fa buf 223argument 224points to an invalid address. 225.It Bq Er EIO 226An 227.Tn I/O 228error occurred while reading from or writing to the file system. 229.El 230.Sh HISTORY 231The 232.Fn statfs 233system call first appeared in 234.Bx 4.4 .
|