]> git.decadent.org.uk Git - nfs-utils.git/blob - support/include/fstab.h
"rpc.nfsd XX" should not fail if ports are already open.
[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 int mtab_is_writable(void);
7 int mtab_does_not_exist(void);
8
9 struct mntentchn {
10         struct mntentchn *nxt, *prev;
11         nfs_mntent_t m;
12 };
13
14 struct mntentchn *mtab_head (void);
15 struct mntentchn *getmntoptfile (const char *file);
16 struct mntentchn *getmntdirbackward (const char *dir, struct mntentchn *mc);
17 struct mntentchn *getmntdevbackward (const char *dev, struct mntentchn *mc);
18
19 void lock_mtab (void);
20 void unlock_mtab (void);
21 void update_mtab (const char *special, nfs_mntent_t *with);
22
23 #endif /* _NFS_FSTAB_H */
24