]> git.decadent.org.uk Git - nfs-utils.git/blob - support/include/fstab.h
ab30c5a7fa9d1f1f85dd460917f7b1e8f988eea5
[nfs-utils.git] / support / include / fstab.h
1 #ifndef _NFS_FSTAB_H
2 #define _NFS_FSTAB_H
3
4 #include "nfs_mntent.h"
5
6 #ifndef _PATH_FSTAB
7 #define _PATH_FSTAB "/etc/fstab"
8 #endif
9
10 int mtab_is_writable(void);
11 int mtab_does_not_exist(void);
12
13 struct mntentchn {
14         struct mntentchn *nxt, *prev;
15         nfs_mntent_t m;
16 };
17
18 struct mntentchn *getmntoptfile (const char *file);
19 struct mntentchn *getmntdirbackward (const char *dir, struct mntentchn *mc);
20 struct mntentchn *getmntdevbackward (const char *dev, struct mntentchn *mc);
21
22 struct mntentchn *getfsfile (const char *file);
23 struct mntentchn *getfsspec (const char *spec);
24
25 void lock_mtab (void);
26 void unlock_mtab (void);
27 void update_mtab (const char *special, nfs_mntent_t *with);
28
29 #endif /* _NFS_FSTAB_H */
30