|
|
1.1 root 1: /* fstab.h 4.4 83/05/24 */
2:
3: /*
4: * File system table, see fstab (5)
5: *
6: * Used by dump, mount, umount, swapon, fsck, df, ...
7: *
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.
14: */
15: #define FSTAB "/etc/fstab"
16:
17: #define FSTAB_RW "rw" /* read/write device */
18: #define FSTAB_RQ "rq" /* read/write with quotas */
19: #define FSTAB_RO "ro" /* read-only device */
20: #define FSTAB_SW "sw" /* swap device */
21: #define FSTAB_XX "xx" /* ignore totally */
22:
23: struct fstab{
24: char *fs_spec; /* block special device name */
25: char *fs_file; /* file system path prefix */
26: char *fs_type; /* FSTAB_* */
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();
34: struct fstab *getfstype();
35: int setfsent();
36: int endfsent();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.