summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/mount.h.in
diff options
context:
space:
mode:
authorKarel Zak2010-09-25 01:48:38 +0200
committerKarel Zak2011-01-03 12:28:43 +0100
commit66b8b8cd774978f1c885464a51ca1492e6459f2d (patch)
treeb6ac97dcf042a24eeb49d86ac4c6797927d2c8c6 /shlibs/mount/src/mount.h.in
parentlibmount: improve parsers return codes (diff)
downloadkernel-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.in10
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);