-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue 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
move error messages to hooksets #2314
base: master
Are you sure you want to change the base?
Commits on Jun 14, 2023
-
libmount: rewrite how syscall status is stored
This patch introduces "failure save". The syscall status is subset of the saved failure, but the failure can be used also for non-syscall issues. * save SYS_* numbers rather than names for syscalls. It will make error generators more simple (just switch(cxt->failure_syscall)) * save hookset; it will be later used to call hookset specific error message generator * optionally save "failure command", for example syscall sub-command (FSCONFIG_CMD_*) or some hook specific stuff * optionally save "failure argument" as string (to make error messages more human friendly) * use line and filename in debug message for failures Note that the way how libmount uses syscall_status is not affected by this patch, because this field is used by public API. Signed-off-by: Karel Zak <kzak@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for b884a7d - Browse repository at this point
Copy the full SHA b884a7dView commit details -
lib/strutils: add errsnprint()
Signed-off-by: Karel Zak <kzak@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 21d960c - Browse repository at this point
Copy the full SHA 21d960cView commit details -
libmount: move is_shared_tree() to utils.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for fec1e0c - Browse repository at this point
Copy the full SHA fec1e0cView commit details -
libmount: add mkerrmsg callback to mount hook
It helps to maintain mount syscall-specific error messages on place where we use the syscalls. Signed-off-by: Karel Zak <kzak@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 51245f8 - Browse repository at this point
Copy the full SHA 51245f8View commit details -
libmount: move mount(2) error messages to legacy hook
Signed-off-by: Karel Zak <kzak@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for bf83a66 - Browse repository at this point
Copy the full SHA bf83a66View commit details -
libmount: add mkerrmsg callback to subdir hook
Signed-off-by: Karel Zak <kzak@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for f4d7407 - Browse repository at this point
Copy the full SHA f4d7407View commit details -
libmount: improve generic error
Signed-off-by: Karel Zak <kzak@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 35f0eaa - Browse repository at this point
Copy the full SHA 35f0eaaView commit details
Commits on Jun 15, 2023
-
libmount: add add mkerrmsg callback to loopdev hook
Signed-off-by: Karel Zak <kzak@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 1ca9959 - Browse repository at this point
Copy the full SHA 1ca9959View commit details