Upload Tizen:Base source
[framework/base/util-linux-ng.git] / mount / fstab.h
1 #ifndef MOUNT_FSTAB_H
2 #define MOUNT_FSTAB_H
3
4 #include "mount_mntent.h"
5 int mtab_is_writable(void);
6 int mtab_does_not_exist(void);
7 void reset_mtab_info(void);
8 int is_mounted_once(const char *name);
9
10 struct mntentchn {
11         struct mntentchn *nxt, *prev;
12         struct my_mntent m;
13 };
14
15 struct mntentchn *mtab_head (void);
16 struct mntentchn *getmntfile (const char *name);
17 struct mntentchn *getmntoptfile (const char *file);
18 struct mntentchn *getmntdirbackward (const char *dir, struct mntentchn *mc);
19 struct mntentchn *getmntdevbackward (const char *dev, struct mntentchn *mc);
20
21 struct mntentchn *fstab_head (void);
22 struct mntentchn *getfs_by_dir (const char *dir);
23 struct mntentchn *getfs_by_spec (const char *spec);
24 struct mntentchn *getfs_by_devname (const char *devname);
25 struct mntentchn *getfs_by_devdir (const char *dev, const char *dir);
26 struct mntentchn *getfs_by_uuid (const char *uuid);
27 struct mntentchn *getfs_by_label (const char *label);
28
29 void lock_mtab (void);
30 void unlock_mtab (void);
31 void update_mtab (const char *special, struct my_mntent *with);
32
33 #endif /* MOUNT_FSTAB_H */