4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
22 #pragma ident "%Z%%M% %I% %E% SMI"
25 * File system table, see fstab (5)
27 * Used by dump, mount, umount, swapon, fsck, df, ...
29 * The fs_spec field is the block special name. Programs
30 * that want to use the character special name must create
31 * that name by prepending a 'r' after the right most slash.
32 * Quota files are always named "quotas", so if type is "rq",
33 * then use concatenation of fs_file and "quotas" to locate
40 #define FSTAB "/etc/fstab"
42 #define FSTAB_RW "rw" /* read/write device */
43 #define FSTAB_RQ "rq" /* read/write with quotas */
44 #define FSTAB_RO "ro" /* read-only device */
45 #define FSTAB_SW "sw" /* swap device */
46 #define FSTAB_XX "xx" /* ignore totally */
49 char *fs_spec
; /* block special device name */
50 char *fs_file
; /* file system path prefix */
51 char *fs_type
; /* FSTAB_* */
52 int fs_freq
; /* dump frequency, in days */
53 int fs_passno
; /* pass number on parallel dump */
56 struct fstab
*getfsent();
57 struct fstab
*getfsspec();
58 struct fstab
*getfsfile();
59 struct fstab
*getfstype();