mountpoint-util: make is_name_to_handle_at_fatal_error() an exported API

And while we are at it, make it use ERRNO_IS_xyz() where appropriate.

And move it up a bit, so we can use in the whole of mountpoint-util.c
(which we want to later).
This commit is contained in:
Lennart Poettering
2024-07-01 15:45:15 +02:00
parent 502fbea8c1
commit a89690f719
2 changed files with 20 additions and 13 deletions
+2
View File
@@ -36,6 +36,8 @@
#define TMPFS_LIMITS_ROOTFS TMPFS_LIMITS_VAR
#define TMPFS_LIMITS_VOLATILE_STATE TMPFS_LIMITS_VAR
bool is_name_to_handle_at_fatal_error(int err);
int name_to_handle_at_loop(int fd, const char *path, struct file_handle **ret_handle, int *ret_mnt_id, int flags);
int path_get_mnt_id_at_fallback(int dir_fd, const char *path, int *ret);