]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: ignore unwanted kernel events in monitor
authorKarel Zak <kzak@redhat.com>
Mon, 22 Jan 2024 12:04:44 +0000 (13:04 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Jan 2024 12:04:44 +0000 (13:04 +0100)
commita2b5a4e0adf9543843bb0aef94d21e7105cf8159
treefa94846d66d81b97422c188d55e0896b55eead92
parent9218c9678a6aa9b163705364246ed128e94fabb7
libmount: ignore unwanted kernel events in monitor

If the mount operation requires multiple steps, it's optimal for the
libmount monitor to ignore the steps until we get a complete mount
(reported by the utab.event file).

This commit adds a new API function, mnt_monitor_veil_kernel(), to
ignore unwanted kernel mount events.

Note that this only makes sense when the application monitors kernel
and userspace events simultaneously.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/docs/libmount-sections.txt
libmount/src/libmount.h.in
libmount/src/libmount.sym
libmount/src/monitor.c