]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: add mnt_table_parse_utab()
authorKarel Zak <kzak@redhat.com>
Wed, 1 Jul 2026 10:49:25 +0000 (12:49 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 1 Jul 2026 10:49:25 +0000 (12:49 +0200)
commit0926f4a70bd88beaa10cbecee58db9c28b5452d3
tree970f02f11a30d90ba84c9f4bc10d53cb09a8274c
parentf9baae05e3b467da0c4e72254dd7018151639a8f
libmount: add mnt_table_parse_utab()

Add new public API to parse the utab file into a table. The utab path
and format are private library details; this function hides them from
callers. NULL as filename is recommended to let the library determine
the correct path.

This is needed by systemd for incremental fanotify-based mount
monitoring, where utab needs to be parsed independently of the full
mountinfo/listmount rescan path.

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