Handle NO_OPEN/NO_OPENDIR support automatically (#949)
authorJosef Bacik <josef@toxicpanda.com>
Fri, 10 May 2024 15:52:20 +0000 (11:52 -0400)
committerGitHub <noreply@github.com>
Fri, 10 May 2024 15:52:20 +0000 (17:52 +0200)
commit2bdec0bc22ce39b307e299ee9ec19d1c58b640de
treec1595664c90b2012ce97e6e8290d9b221a51e0c3
parent0128f5efe8d4bdf1256a358358dd0ac3098a66ee
Handle NO_OPEN/NO_OPENDIR support automatically (#949)

If the file system doesn't provide a ->open or an ->opendir, and the
kernel supports FUSE_CAP_NO_OPEN_SUPPORT or FUSE_CAP_NO_OPENDIR_SUPPORT,
allow the implementation to set FUSE_CAP_NO_OPEN*_SUPPORT on conn->want
in order to automatically get this behavior.  Expand the documentation
to be more explicit about the behavior of libfuse in the different cases
WRT this capability.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
include/fuse_common.h
include/fuse_lowlevel.h
lib/fuse_lowlevel.c