diff options
| author | Karel Zak <kzak@redhat.com> | 2024-02-26 12:44:10 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2024-02-27 16:09:24 +0100 |
| commit | 9da5644e414cdc318f0311260dabc6035c85b58e (patch) | |
| tree | f147f29fa9dd7e7e6250f1f8d58ccaff99bea76e /libmount/src/context.c | |
| parent | 805911b7d5449379135d156661e4fdc2c79b4641 (diff) | |
| download | util-linux-9da5644e414cdc318f0311260dabc6035c85b58e.tar.gz | |
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>
Diffstat (limited to 'libmount/src/context.c')
| -rw-r--r-- | libmount/src/context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmount/src/context.c b/libmount/src/context.c index d9310c453b..6a1b995785 100644 --- a/libmount/src/context.c +++ b/libmount/src/context.c @@ -314,6 +314,8 @@ int mnt_context_reset_status(struct libmnt_context *cxt) if (!cxt) return -EINVAL; + reset_syscall_status(cxt); + cxt->syscall_status = 1; /* means not called yet */ cxt->helper_exec_status = 1; cxt->helper_status = 0; |
