[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>
Wed, 16 Jul 2025 17:27:21 +0000 (17:27 +0000)
commit76d5f06bc9a0ff2eabf2bd51dbf3daa0efcc28d4
treef2a93ec096f5aeece7b090a2d3c6dca9f21e89a8
parent79d69fdf320c356eca71001f8cc6454c5d7b3cc0
[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