From: Karel Zak Date: Tue, 20 Sep 2022 11:50:40 +0000 (+0200) Subject: libmount: new stuff to header file X-Git-Tag: v2.39-rc1~265 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=2b1db0951b9d515d4c7bbb5c85308664d0adfc47;p=thirdparty%2Futil-linux.git libmount: new stuff to header file Signed-off-by: Karel Zak --- diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h index 7f1636d9a9..ed3ef9845f 100644 --- a/libmount/src/mountP.h +++ b/libmount/src/mountP.h @@ -29,6 +29,7 @@ #include "debug.h" #include "buffer.h" #include "libmount.h" +#include "mount-api-utils.h" /* * Debug @@ -311,6 +312,7 @@ struct libmnt_hookset { /* built-in hooks */ extern const struct libmnt_hookset hookset_mount_legacy; +extern const struct libmnt_hookset hookset_mount; extern const struct libmnt_hookset hookset_mkdir; extern const struct libmnt_hookset hookset_subdir; extern const struct libmnt_hookset hookset_owner; @@ -527,6 +529,7 @@ enum { extern int mnt_optlist_get_flags(struct libmnt_optlist *ls, unsigned long *flags, const struct libmnt_optmap *map, unsigned int what); +extern int mnt_optlist_get_attrs(struct libmnt_optlist *ls, uint64_t *attrs); extern int mnt_optlist_get_optstr(struct libmnt_optlist *ol, const char **optstr, const struct libmnt_optmap *map, unsigned int what); extern int mnt_optlist_strdup_optstr(struct libmnt_optlist *ls, char **optstr, @@ -537,6 +540,7 @@ extern int mnt_optlist_is_propagation_only(struct libmnt_optlist *ls); extern int mnt_optlist_is_remount(struct libmnt_optlist *ls); extern int mnt_optlist_is_recursive(struct libmnt_optlist *ls); extern int mnt_optlist_is_bind(struct libmnt_optlist *ls); +extern int mnt_optlist_is_rbind(struct libmnt_optlist *ls); extern int mnt_optlist_is_move(struct libmnt_optlist *ls); extern int mnt_optlist_is_rdonly(struct libmnt_optlist *ls); extern int mnt_optlist_is_silent(struct libmnt_optlist *ls); @@ -619,4 +623,12 @@ extern int mnt_update_already_done(struct libmnt_update *upd, extern uint64_t btrfs_get_default_subvol_id(const char *path); #endif +#ifdef UL_HAVE_MOUNT_API +/* fsconfig/fsopen based stuff */ +struct libmnt_sysapi { + int fd_fs; /* FD from fsopen() or fspick() */ + int fd_tree; /* FD from fsmount() or open_tree() */ +}; +#endif + #endif /* _LIBMOUNT_PRIVATE_H */