]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: report kernel message from new API
authorKarel Zak <kzak@redhat.com>
Mon, 26 Feb 2024 11:44:10 +0000 (12:44 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 27 Feb 2024 15:09:24 +0000 (16:09 +0100)
commit9da5644e414cdc318f0311260dabc6035c85b58e
treef147f29fa9dd7e7e6250f1f8d58ccaff99bea76e
parent805911b7d5449379135d156661e4fdc2c79b4641
libmount: report kernel message from new API

This is a very minimalistic implementation for v2.40 designed to print
error messages from the kernel. It exclusively displays errors, and
the patch does not introduce any new library interface for this
purpose. Instead, it simply replaces hardcoded messages within
libmount with kernel messages.

It's worth noting that the final implementation will necessitate
per-hook error handling in libmount and likely a new library API to
access other types of messages (warnings, notices, etc.).

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c
libmount/src/context_mount.c
libmount/src/hook_mount.c
libmount/src/mountP.h