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/Makemodule.am | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libmount/src/Makemodule.am') diff --git a/libmount/src/Makemodule.am b/libmount/src/Makemodule.am index a0393f7a8..98fef00bd 100644 --- a/libmount/src/Makemodule.am +++ b/libmount/src/Makemodule.am @@ -30,7 +30,8 @@ libmount_la_SOURCES += \ libmount/src/context.c \ libmount/src/context_loopdev.c \ libmount/src/context_mount.c \ - libmount/src/context_umount.c + libmount/src/context_umount.c \ + libmount/src/monitor.c endif nodist_libmount_la_SOURCES = libmount/src/mountP.h @@ -73,6 +74,7 @@ check_PROGRAMS += \ test_mount_tab_update \ test_mount_utils \ test_mount_version \ + test_mount_monitor \ test_mount_debug libmount_tests_cflags = -DTEST_PROGRAM $(libmount_la_CFLAGS) @@ -113,6 +115,11 @@ test_mount_tab_diff_CFLAGS = $(libmount_tests_cflags) test_mount_tab_diff_LDFLAGS = $(libmount_tests_ldflags) test_mount_tab_diff_LDADD = $(libmount_tests_ldadd) +test_mount_monitor_SOURCES = libmount/src/monitor.c +test_mount_monitor_CFLAGS = $(libmount_tests_cflags) +test_mount_monitor_LDFLAGS = $(libmount_tests_ldflags) +test_mount_monitor_LDADD = $(libmount_tests_ldadd) + test_mount_tab_update_SOURCES = libmount/src/tab_update.c test_mount_tab_update_CFLAGS = $(libmount_tests_cflags) test_mount_tab_update_LDFLAGS = $(libmount_tests_ldflags) -- cgit v1.2.3-55-g7522