diff options
author | Karel Zak | 2014-12-05 15:30:04 +0100 |
---|---|---|
committer | Karel Zak | 2014-12-05 15:30:04 +0100 |
commit | 372112e908e73a9737ad28ee7e33da271654baff (patch) | |
tree | f34a58c619de1e94942affb076b896044c6520a5 /libmount/src/init.c | |
parent | libblkid: fix potential bufer overflows (diff) | |
download | kernel-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/init.c')
-rw-r--r-- | libmount/src/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmount/src/init.c b/libmount/src/init.c index eee67c5af..fc5745956 100644 --- a/libmount/src/init.c +++ b/libmount/src/init.c @@ -29,6 +29,8 @@ UL_DEBUG_DEFINE_MASKNAMES(libmount) = { "tab", MNT_DEBUG_TAB, "fstab, mtab, moutninfo routines" }, { "update", MNT_DEBUG_UPDATE, "mtab, utab updates" }, { "utils", MNT_DEBUG_UTILS, "misc library utils" }, + { "monitor", MNT_DEBUG_MONITOR, "mount tables monitor" }, + { NULL, 0 } }; |