summaryrefslogtreecommitdiffstats
path: root/libmount/src/libmount.h.in
diff options
context:
space:
mode:
authorKarel Zak2014-12-16 15:28:41 +0100
committerKarel Zak2015-01-06 16:19:02 +0100
commit9b4fc141d470b15d0ac772c6226276699c15eba6 (patch)
tree8d7b4956bc62307410217fe996279a3b1d684aba /libmount/src/libmount.h.in
parentlibmount: make public top-level monitor FD only (diff)
downloadkernel-qcow2-util-linux-9b4fc141d470b15d0ac772c6226276699c15eba6.tar.gz
kernel-qcow2-util-linux-9b4fc141d470b15d0ac772c6226276699c15eba6.tar.xz
kernel-qcow2-util-linux-9b4fc141d470b15d0ac772c6226276699c15eba6.zip
libmount: (monitor) cleanup wait/verify stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/libmount.h.in')
-rw-r--r--libmount/src/libmount.h.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in
index 316baa97d..90c3c1129 100644
--- a/libmount/src/libmount.h.in
+++ b/libmount/src/libmount.h.in
@@ -536,7 +536,12 @@ extern int mnt_tabdiff_next_change(struct libmnt_tabdiff *df,
struct libmnt_fs **new_fs,
int *oper);
-/* minitor.c */
+/* monitor.c */
+enum {
+ MNT_MONITOR_TYPE_USERSPACE = 1, /* userspace mount options */
+ MNT_MONITOR_TYPE_KERNEL /* kernel mount table */
+};
+
extern struct libmnt_monitor *mnt_new_monitor(void);
extern void mnt_ref_monitor(struct libmnt_monitor *mn);
extern void mnt_unref_monitor(struct libmnt_monitor *mn);
@@ -545,6 +550,13 @@ extern int mnt_monitor_enable_userspace(struct libmnt_monitor *mn,
int enable, const char *filename);
extern int mnt_monitor_get_fd(struct libmnt_monitor *mn);
+extern int mnt_monitor_close_fd(struct libmnt_monitor *mn);
+extern int mnt_monitor_wait(struct libmnt_monitor *mn, int timeout);
+
+extern int mnt_monitor_next_changed(struct libmnt_monitor *mn,
+ const char **filename, int *type);
+extern int mnt_monitor_is_changed(struct libmnt_monitor *mn);
+
/* context.c */