8000 libmount: report all kernel messages for fd-based mount API by t-8ch · Pull Request #2529 · util-linux/util-linux · GitHub
[go: up one dir, main page]

Skip to content

libmount: report all kernel messages for fd-based mount API #2529

New issue

Have a question about this project? Sign up for a free GitHub account to open an is 8000 sue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 9, 2023

Conversation

t-8ch
Copy link
Member
@t-8ch t-8ch commented Oct 5, 2023

The kernel helpfully provides feedback about failed operations via the
filesystem descriptor. Read that information and expose it via libmounts
debug facilities.

Notes:

For #2528 we get the following message:
646514: libmount: CXT: message from kernel: e overlay: No changes allowed in reconfigure

The #define-based usage is a bit iffy but so convenient.

Related to #2314

t-8ch added 3 commits October 5, 2023 13:18
Functions are easier to modify and reason about.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
The kernel helpfully provides feedback about failed operations via the
filesystem descriptor. Read that information and expose it via libmounts
debug facilities.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
@t-8ch t-8ch changed the title libmount: report libmount: report all kernel messages for fd-based mount API Oct 5, 2023
@karelzak
Copy link
Collaborator
karelzak commented Oct 9, 2023

Thanks, good idea. It would be nice to save the error message to make it accessible for API (libmount) users.

@karelzak karelzak merged commit f3fd641 into util-linux:master Oct 9, 2023
@t-8ch
Copy link
Member Author
t-8ch commented Oct 9, 2023

would be nice to save the error message

Absolutely! That would be part of #2314, no?

@karelzak
Copy link
Collaborator

would be nice to save the error message

Absolutely! That would be part of #2314, no?

Yes :-), but first I need to finish scols-filter and some other stuff.

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.

2 participants
0