summaryrefslogtreecommitdiffstats
path: root/src/basic/mountpoint-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-06-25 12:37:32 +0200
committerLennart Poettering <lennart@poettering.net>2024-07-01 15:45:15 +0200
commit8da6413860f8a6cdcda67f03e629a0adf9392915 (patch)
treee814e2566313d41610b082dff94c896d4edef3c2 /src/basic/mountpoint-util.h
parentmountpoint-util: make is_name_to_handle_at_fatal_error() an exported API (diff)
downloadsystemd-8da6413860f8a6cdcda67f03e629a0adf9392915.tar.xz
systemd-8da6413860f8a6cdcda67f03e629a0adf9392915.zip
mountpoint-util: add public helper for comparing file handles
We already have the code, let's move it to a function of its own and export it.
Diffstat (limited to '')
-rw-r--r--src/basic/mountpoint-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/mountpoint-util.h b/src/basic/mountpoint-util.h
index 26afbb653d..c9d730e25c 100644
--- a/src/basic/mountpoint-util.h
+++ b/src/basic/mountpoint-util.h
@@ -40,6 +40,8 @@ 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);
+bool file_handle_equal(const struct file_handle *a, const struct file_handle *b);
+
int path_get_mnt_id_at_fallback(int dir_fd, const char *path, int *ret);
int path_get_mnt_id_at(int dir_fd, const char *path, int *ret);
static inline int path_get_mnt_id(const char *path, int *ret) {