Commit | Line | Data |
---|---|---|
e2151f85 | 1 | /* fstab.h 4.4 83/05/24 */ |
bc08c854 SL |
2 | |
3 | /* | |
4 | * File system table, see fstab (5) | |
5 | * | |
6 | * Used by dump, mount, umount, swapon, fsck, df, ... | |
7 | * | |
c0adf42f SL |
8 | * The fs_spec field is the block special name. Programs |
9 | * that want to use the character special name must create | |
10 | * that name by prepending a 'r' after the right most slash. | |
11 | * Quota files are always named "quotas", so if type is "rq", | |
12 | * then use concatenation of fs_file and "quotas" to locate | |
13 | * quota file. | |
bc08c854 | 14 | */ |
bc08c854 | 15 | #define FSTAB "/etc/fstab" |
bc08c854 | 16 | |
c0adf42f | 17 | #define FSTAB_RW "rw" /* read/write device */ |
e2151f85 | 18 | #define FSTAB_RQ "rq" /* read/write with quotas */ |
c0adf42f | 19 | #define FSTAB_RO "ro" /* read-only device */ |
bc08c854 SL |
20 | #define FSTAB_SW "sw" /* swap device */ |
21 | #define FSTAB_XX "xx" /* ignore totally */ | |
22 | ||
23 | struct fstab{ | |
a7347436 SL |
24 | char *fs_spec; /* block special device name */ |
25 | char *fs_file; /* file system path prefix */ | |
c0adf42f | 26 | char *fs_type; /* FSTAB_* */ |
bc08c854 SL |
27 | int fs_freq; /* dump frequency, in days */ |
28 | int fs_passno; /* pass number on parallel dump */ | |
29 | }; | |
30 | ||
31 | struct fstab *getfsent(); | |
32 | struct fstab *getfsspec(); | |
33 | struct fstab *getfsfile(); | |
c0adf42f | 34 | struct fstab *getfstype(); |
bc08c854 SL |
35 | int setfsent(); |
36 | int endfsent(); |