Skip to content

libmount: add mnt_table_parse_utab()#4463

Open
karelzak wants to merge 1 commit into
util-linux:masterfrom
karelzak:PR/libmount-utab-api
Open

libmount: add mnt_table_parse_utab()#4463
karelzak wants to merge 1 commit into
util-linux:masterfrom
karelzak:PR/libmount-utab-api

Conversation

@karelzak

@karelzak karelzak commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add mnt_table_parse_utab() — public API to parse the utab file into a table, hiding the private file location and format from callers

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.

@karelzak karelzak marked this pull request as draft July 1, 2026 10:16
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>
@karelzak karelzak force-pushed the PR/libmount-utab-api branch from 2a7726e to 0926f4a Compare July 1, 2026 10:49
@karelzak karelzak changed the title libmount: add mnt_table_parse_utab() and mnt_fs_merge_useropts() libmount: add mnt_table_parse_utab() Jul 1, 2026
@karelzak karelzak marked this pull request as ready for review July 1, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant