xref: /titanic_51/usr/src/lib/libbc/inc/include/fstab.h (revision bbaa8b60dd95d714741fc474adad3cf710ef4efd)
1 /*
2  * CDDL HEADER START
3  *
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
7  * with the License.
8  *
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.
13  *
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]
19  *
20  * CDDL HEADER END
21  */
22 #pragma ident	"%Z%%M%	%I%	%E% SMI"
23 
24 /*
25  * File system table, see fstab (5)
26  *
27  * Used by dump, mount, umount, swapon, fsck, df, ...
28  *
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
34  * quota file.
35  */
36 
37 #ifndef _fstab_h
38 #define _fstab_h
39 
40 #define	FSTAB		"/etc/fstab"
41 
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 */
47 
48 struct	fstab{
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 */
54 };
55 
56 struct	fstab *getfsent();
57 struct	fstab *getfsspec();
58 struct	fstab *getfsfile();
59 struct	fstab *getfstype();
60 int	setfsent();
61 int	endfsent();
62 
63 #endif /*!_fstab_h*/
64