Commit | Line | Data |
---|---|---|
bb0cfa24 DF |
1 | /* |
2 | * Copyright (c) 1980 Regents of the University of California. | |
19bfcb20 | 3 | * All rights reserved. |
bb0cfa24 | 4 | * |
863005e5 | 5 | * %sccs.include.redist.c% |
19bfcb20 | 6 | * |
91befe9c | 7 | * @(#)fstab.h 5.11 (Berkeley) %G% |
bb0cfa24 | 8 | */ |
bc08c854 SL |
9 | |
10 | /* | |
ff81dbe3 | 11 | * File system table, see fstab(5). |
bc08c854 SL |
12 | * |
13 | * Used by dump, mount, umount, swapon, fsck, df, ... | |
14 | * | |
3038098e KM |
15 | * For ufs fs_spec field is the block special name. Programs that want to |
16 | * use the character special name must create that name by prepending a 'r' | |
ff81dbe3 KB |
17 | * after the right most slash. Quota files are always named "quotas", so |
18 | * if type is "rq", then use concatenation of fs_file and "quotas" to locate | |
c0adf42f | 19 | * quota file. |
bc08c854 | 20 | */ |
ff81dbe3 KB |
21 | #define _PATH_FSTAB "/etc/fstab" |
22 | #define FSTAB "/etc/fstab" /* deprecated */ | |
bc08c854 | 23 | |
ff81dbe3 KB |
24 | #define FSTAB_RW "rw" /* read/write device */ |
25 | #define FSTAB_RQ "rq" /* read/write with quotas */ | |
26 | #define FSTAB_RO "ro" /* read-only device */ | |
27 | #define FSTAB_SW "sw" /* swap device */ | |
28 | #define FSTAB_XX "xx" /* ignore totally */ | |
bc08c854 | 29 | |
ff81dbe3 | 30 | struct fstab { |
a7347436 SL |
31 | char *fs_spec; /* block special device name */ |
32 | char *fs_file; /* file system path prefix */ | |
60c7718d KM |
33 | char *fs_vfstype; /* File system type, ufs, nfs */ |
34 | char *fs_mntops; /* Mount options ala -o */ | |
3038098e KM |
35 | char *fs_type; /* FSTAB_* from fs_mntops */ |
36 | int fs_freq; /* dump frequency, in days */ | |
37 | int fs_passno; /* pass number on parallel dump */ | |
bc08c854 SL |
38 | }; |
39 | ||
91befe9c KB |
40 | #include <sys/cdefs.h> |
41 | ||
42 | __BEGIN_DECLS | |
43 | struct fstab *getfsent __P((void)); | |
44 | struct fstab *getfsspec __P((const char *)); | |
45 | struct fstab *getfsfile __P((const char *)); | |
46 | int setfsent __P((void)); | |
47 | void endfsent __P((void)); | |
48 | __END_DECLS |