From 372112e908e73a9737ad28ee7e33da271654baff Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 5 Dec 2014 15:30:04 +0100 Subject: libmount: add new libmnt_monitor API It's usually enough to us [e]poll() to monitor kernel mount table, but there is no way how to monitor changes in userspace mount options (e.g. _netdev). The management of these mount options is completely hidden in libmount and /rub/mount/utab is private libmount file. This patch introduces new libmnt_mount API to monitor also userspace mount table. Signed-off-by: Karel Zak --- libmount/src/libmount.sym | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libmount/src/libmount.sym') diff --git a/libmount/src/libmount.sym b/libmount/src/libmount.sym index 56170abc2..d5c4643e4 100644 --- a/libmount/src/libmount.sym +++ b/libmount/src/libmount.sym @@ -297,3 +297,13 @@ MOUNT_2.25 { mnt_table_uniq_fs; mnt_tag_is_valid; } MOUNT_2.24; + +MOUNT_2.26 { + mnt_monitor_get_events; + mnt_monitor_get_filename; + mnt_monitor_is_changed; + mnt_monitor_userspace_get_fd; + mnt_new_monitor; + mnt_ref_monitor; + mnt_unref_monitor; +} MOUNT_2.25; -- cgit v1.2.3-55-g7522