diff options
author | Karel Zak | 2010-08-05 12:24:59 +0200 |
---|---|---|
committer | Karel Zak | 2011-01-03 12:28:40 +0100 |
commit | 922d87965c6371986863dae18e001f8e22731651 (patch) | |
tree | 6b6ae610574abc8ef648bff62dcd24a598bfb0cd /shlibs/mount/src/mount.h.in | |
parent | libmount: improve mnt_get_fs_root() and mnt_get_mountpoint() (diff) | |
download | kernel-qcow2-util-linux-922d87965c6371986863dae18e001f8e22731651.tar.gz kernel-qcow2-util-linux-922d87965c6371986863dae18e001f8e22731651.tar.xz kernel-qcow2-util-linux-922d87965c6371986863dae18e001f8e22731651.zip |
libmount: add mnt_optstr_get_mountflags()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/mount.h.in')
-rw-r--r-- | shlibs/mount/src/mount.h.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/shlibs/mount/src/mount.h.in b/shlibs/mount/src/mount.h.in index 6a1cd19be..a1944c543 100644 --- a/shlibs/mount/src/mount.h.in +++ b/shlibs/mount/src/mount.h.in @@ -102,6 +102,27 @@ typedef struct _mnt_fs mnt_fs; */ typedef struct _mnt_tab mnt_tab; +/** + * mnt_mtab + * + * /etc/mtab or /var/run/mountinfo update description + */ +typedef struct _mnt_mtab mnt_mtab; + +/* + * Tab file format + */ +enum { + MNT_FMT_FSTAB = 1, /* /etc/{fs,m}tab */ + MNT_FMT_MTAB = MNT_FMT_FSTAB, /* alias */ + MNT_FMT_MOUNTINFO /* /proc/#/mountinfo */ +}; + +enum { + MNT_ACT_MOUNT = 1, + MNT_ACT_UMOUNT +}; + /* init.c */ extern void mnt_init_debug(int mask); @@ -150,6 +171,8 @@ extern int mnt_split_optstr(const char *optstr, char **user, char **vfs, char **fs, int ifnore_user, int ignore_vfs); +extern int mnt_optstr_get_mountflags(const char *optstr); + /* iter.c */ enum { |