[PATCH] conn->want conversion: Fix fuse_apply_conn_info_opts()
authorBernd Schubert <bschubert@ddn.com>
Sat, 17 May 2025 22:24:07 +0000 (00:24 +0200)
committerLaszlo Boszormenyi (GCS) <gcs@debian.org>
Mon, 19 May 2025 18:39:08 +0000 (20:39 +0200)
commit322dc94e3b406f6591fa46179210911634b10b06
treeaa914ac23f0caadc082a5b6fbcfdd4a8eff5c5f9
parent1a22e76cb5cee3e4a4fdd338e32b170179bf1a85
[PATCH] 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>
Gbp-Pq: Name Fix-fuse_apply_conn_info_opts.patch
include/fuse_common.h
lib/fuse.c
lib/fuse_i.h
lib/fuse_lowlevel.c
lib/fuse_versionscript
lib/helper.c
lib/util.c
lib/util.h
test/test_want_conversion.c