summaryrefslogtreecommitdiffstats
path: root/libmount/src/Makemodule.am
diff options
context:
space:
mode:
authorKarel Zak2014-12-05 15:30:04 +0100
committerKarel Zak2014-12-05 15:30:04 +0100
commit372112e908e73a9737ad28ee7e33da271654baff (patch)
treef34a58c619de1e94942affb076b896044c6520a5 /libmount/src/Makemodule.am
parentlibblkid: fix potential bufer overflows (diff)
downloadkernel-qcow2-util-linux-372112e908e73a9737ad28ee7e33da271654baff.tar.gz
kernel-qcow2-util-linux-372112e908e73a9737ad28ee7e33da271654baff.tar.xz
kernel-qcow2-util-linux-372112e908e73a9737ad28ee7e33da271654baff.zip
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 <kzak@redhat.com>
Diffstat (limited to 'libmount/src/Makemodule.am')
-rw-r--r--libmount/src/Makemodule.am9
1 files changed, 8 insertions, 1 deletions
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)