summaryrefslogtreecommitdiffstats
path: root/libmount/docs
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/docs
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/docs')
-rw-r--r--libmount/docs/libmount-docs.xml1
-rw-r--r--libmount/docs/libmount-sections.txt12
2 files changed, 13 insertions, 0 deletions
diff --git a/libmount/docs/libmount-docs.xml b/libmount/docs/libmount-docs.xml
index a95d18090..86108a966 100644
--- a/libmount/docs/libmount-docs.xml
+++ b/libmount/docs/libmount-docs.xml
@@ -43,6 +43,7 @@ available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
<title>Tables management</title>
<xi:include href="xml/lock.xml"/>
<xi:include href="xml/update.xml"/>
+ <xi:include href="xml/monitor.xml"/>
<xi:include href="xml/tabdiff.xml"/>
</part>
<part>
diff --git a/libmount/docs/libmount-sections.txt b/libmount/docs/libmount-sections.txt
index 88c1f53b6..626f21108 100644
--- a/libmount/docs/libmount-sections.txt
+++ b/libmount/docs/libmount-sections.txt
@@ -382,3 +382,15 @@ mnt_get_library_version
mnt_get_library_features
LIBMOUNT_VERSION
</SECTION>
+
+<SECTION>
+<FILE>monitor</FILE>
+libmnt_monitor
+mnt_new_monitor
+mnt_ref_monitor
+mnt_unref_monitor
+mnt_monitor_userspace_get_fd
+mnt_monitor_get_events
+mnt_monitor_get_filename
+mnt_monitor_is_changed
+</SECTION>