2 * Copyright (c) 1989 The Regents of the University of California.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 * must display the following acknowledgement:
15 * This product includes software developed by the University of
16 * California, Berkeley and its contributors.
17 * 4. Neither the name of the University nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * @(#)mount.h 7.22 (Berkeley) 6/3/91
41 #include <sys/fs_types.h>
43 typedef struct { int32_t val
[2]; } fsid_t
; /* file system id type */
45 #define MNAMELEN 90 /* length of buffer for returned name */
48 short f_type
; /* type of filesystem (see below) */
49 short f_flags
; /* copy of mount flags */
50 long f_fsize
; /* fundamental file system block size */
51 long f_bsize
; /* optimal transfer block size */
52 long f_blocks
; /* total data blocks in file system */
53 long f_bfree
; /* free blocks in fs */
54 long f_bavail
; /* free blocks avail to non-superuser */
55 long f_files
; /* total file nodes in file system */
56 long f_ffree
; /* free file nodes in fs */
57 fsid_t f_fsid
; /* file system id */
58 long f_spare
[9]; /* spare for later */
59 char f_mntonname
[MNAMELEN
]; /* directory on which mounted */
60 char f_mntfromname
[MNAMELEN
];/* mounted filesystem */
64 * Flags for various system call interfaces.
66 * forcibly flags for vfs_umount().
67 * waitfor flags to vfs_sync() and getfsstat()
77 * filesystem control flags.
79 * MNT_MLOCK lock the mount entry so that name lookup cannot proceed
80 * past the mount point. This keeps the subtree stable during mounts
83 #define MNT_UPDATE 0x00010000 /* not a real mount, just an update */
84 #define MNT_MLOCK 0x00100000 /* lock so that subtree is stable */
85 #define MNT_MWAIT 0x00200000 /* someone is waiting for lock */
86 #define MNT_MPBUSY 0x00400000 /* scan of mount point in progress */
87 #define MNT_MPWANT 0x00800000 /* waiting for mount point */
88 #define MNT_UNMOUNT 0x01000000 /* unmount in progress */
91 int getfsstat (struct statfs
*, long, int);
94 #endif /* !_SYS_MOUNT_H_ */