diff options
author | Karel Zak | 2010-09-25 01:48:38 +0200 |
---|---|---|
committer | Karel Zak | 2011-01-03 12:28:43 +0100 |
commit | 66b8b8cd774978f1c885464a51ca1492e6459f2d (patch) | |
tree | b6ac97dcf042a24eeb49d86ac4c6797927d2c8c6 /shlibs/mount/src/mount.h.in | |
parent | libmount: improve parsers return codes (diff) | |
download | kernel-qcow2-util-linux-66b8b8cd774978f1c885464a51ca1492e6459f2d.tar.gz kernel-qcow2-util-linux-66b8b8cd774978f1c885464a51ca1492e6459f2d.tar.xz kernel-qcow2-util-linux-66b8b8cd774978f1c885464a51ca1492e6459f2d.zip |
libmount: clean up mountflags usage
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 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/shlibs/mount/src/mount.h.in b/shlibs/mount/src/mount.h.in index 08ba59c8f..ac69ac557 100644 --- a/shlibs/mount/src/mount.h.in +++ b/shlibs/mount/src/mount.h.in @@ -69,10 +69,8 @@ struct mnt_optmap /* * mount options map masks */ -#define MNT_MFLAG (1 << 1) /* use the mask as mount(2) flag */ -#define MNT_MDATA (1 << 2) /* use the option as mount(2) data */ -#define MNT_INVERT (1 << 3) /* invert the mountflag */ -#define MNT_NOMTAB (1 << 4) /* skip in the mtab option string */ +#define MNT_INVERT (1 << 1) /* invert the mountflag */ +#define MNT_NOMTAB (1 << 2) /* skip in the mtab option string */ /** * mnt_fs: @@ -169,8 +167,12 @@ 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_flags(const char *optstr, unsigned long *flags, + const struct mnt_optmap *map); extern int mnt_optstr_get_mountflags(const char *optstr, unsigned long *flags); extern int mnt_optstr_get_userspace_mountflags(const char *optstr, unsigned long *flags); +extern int mnt_optstr_apply_flags(char **optstr, unsigned long flags, + const struct mnt_optmap *map); extern int mnt_optstr_fix_gid(char **optstr, char *value, size_t valsz, char **next); extern int mnt_optstr_fix_uid(char **optstr, char *value, size_t valsz, char **next); |