aboutsummaryrefslogtreecommitdiffstats
path: root/lib/util.h
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2025-05-18 00:24:07 +0200
committerBernd Schubert <bernd@bsbernd.com>2025-05-20 18:14:44 +0200
commitbaadab0492a495fda98216b351976d2e5d6d0866 (patch)
tree61017d2976439c6b7453b402aad5ecd3816b72ef /lib/util.h
parenteadd6a5454373c7c404463c81be652275da5e07b (diff)
downloadlibfuse-baadab0492a495fda98216b351976d2e5d6d0866.tar.gz
conn->want conversion: Fix fuse_apply_conn_info_opts()
fuse_apply_conn_info_opts() was applying to 'want_ext', which would cause conflicts with 'want' if the application applied its own flags to 'conn->want'. Solution is: - to move fuse_{set,unset,get}_feature_flag and convert_to_conn_want_ext() to fuse_lowlevel.c and to define them as part of the public API, although convert_to_conn_want_ext() should not be used - it is currently needed to be a public function due as it needs to be defined for the tests. Related to https://github.com/libfuse/libfuse/issues/1171 and https://github.com/libfuse/libfuse/pull/1172. Closes: https://github.com/libfuse/libfuse/issues/1171 Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/util.h b/lib/util.h
index 96b59d3..d91a5e9 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -2,12 +2,15 @@
#define FUSE_UTIL_H_
#include <stdint.h>
+#include <stdbool.h>
#define ROUND_UP(val, round_to) (((val) + (round_to - 1)) & ~(round_to - 1))
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
+struct fuse_conn_info;
+
int libfuse_strtol(const char *str, long *res);
void fuse_set_thread_name(unsigned long tid, const char *name);