Commit | Line | Data |
---|---|---|
bb0cfa24 DF |
1 | /* |
2 | * Copyright (c) 1980 Regents of the University of California. | |
19bfcb20 | 3 | * All rights reserved. |
bb0cfa24 | 4 | * |
19bfcb20 KB |
5 | * Redistribution and use in source and binary forms are permitted |
6 | * provided that the above copyright notice and this paragraph are | |
7 | * duplicated in all such forms and that any documentation, | |
8 | * advertising materials, and other materials related to such | |
9 | * distribution and use acknowledge that the software was developed | |
10 | * by the University of California, Berkeley. The name of the | |
11 | * University may not be used to endorse or promote products derived | |
12 | * from this software without specific prior written permission. | |
13 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
16 | * | |
3038098e | 17 | * @(#)fstab.h 5.7 (Berkeley) %G% |
bb0cfa24 | 18 | */ |
bc08c854 SL |
19 | |
20 | /* | |
ff81dbe3 | 21 | * File system table, see fstab(5). |
bc08c854 SL |
22 | * |
23 | * Used by dump, mount, umount, swapon, fsck, df, ... | |
24 | * | |
3038098e KM |
25 | * For ufs fs_spec field is the block special name. Programs that want to |
26 | * use the character special name must create that name by prepending a 'r' | |
ff81dbe3 KB |
27 | * after the right most slash. Quota files are always named "quotas", so |
28 | * if type is "rq", then use concatenation of fs_file and "quotas" to locate | |
c0adf42f | 29 | * quota file. |
bc08c854 | 30 | */ |
ff81dbe3 KB |
31 | #define _PATH_FSTAB "/etc/fstab" |
32 | #define FSTAB "/etc/fstab" /* deprecated */ | |
bc08c854 | 33 | |
ff81dbe3 KB |
34 | #define FSTAB_RW "rw" /* read/write device */ |
35 | #define FSTAB_RQ "rq" /* read/write with quotas */ | |
36 | #define FSTAB_RO "ro" /* read-only device */ | |
37 | #define FSTAB_SW "sw" /* swap device */ | |
38 | #define FSTAB_XX "xx" /* ignore totally */ | |
bc08c854 | 39 | |
ff81dbe3 | 40 | struct fstab { |
a7347436 SL |
41 | char *fs_spec; /* block special device name */ |
42 | char *fs_file; /* file system path prefix */ | |
60c7718d KM |
43 | char *fs_vfstype; /* File system type, ufs, nfs */ |
44 | char *fs_mntops; /* Mount options ala -o */ | |
3038098e KM |
45 | char *fs_type; /* FSTAB_* from fs_mntops */ |
46 | int fs_freq; /* dump frequency, in days */ | |
47 | int fs_passno; /* pass number on parallel dump */ | |
bc08c854 SL |
48 | }; |
49 | ||
50 | struct fstab *getfsent(); | |
51 | struct fstab *getfsspec(); | |
52 | struct fstab *getfsfile(); | |
53 | int setfsent(); | |
fed6d52f | 54 | void endfsent(); |