Repository navigation
1. fix enum fuse_readdir_flags and enum fuse_fill_dir_flags in cpp - #903
Conversation
bsbernd
left a comment
There was a problem hiding this comment.
Could you please comment what this is for? This is an unused flag now.
|
I don't know what "adapt cpp" means. |
|
In C++, 0 cannot be converted to the corresponding enum type (fuse_fill_dir_flags), so following code couldn't be compiled filler(buf, ".", NULL, 0, 0);
filler(buf, "..", NULL, 0, 0); |
|
Could you please add failing compiler output to the commit message? Also would help if this flag would get used by the project. What does "1." mean - what would "2.", "3.", etc? |
We only need to add an enumeration item FUSE_FILL_DIR_DEFAULTS. If we do not add this enum item representing 0, we cannot use the filler function directly in the C++ program. |
|
So then please add that part to the commit message and please use the new enum value in example/hello.c |
dba591b to
dac9471
Compare
|
Thanks, much better, please remove all debug printf. Could you please also change the commit message to something like Please feel free to change the text, but please limit subject line to 69 characters. Commit message should be around max 79 chars, except of pasted compiler output. |
1fe56ee to
1dabf6e
Compare
|
Sorry for the delay, there is an out-of-the-sudden test failure - it was working the days/commits before and now reproducibly stalls. Tested old commits - same issue. |
In order to use the fuse_fill_dir_t function in a C++ program, add the enum item:
FUSE_FILL_DIR_DEFAULTS
Without this change g++ compilation failed with
example/hello.c:94:35: error: invalid conversion from ‘int’ to ‘fuse_fill_dir_flags’ [-fpermissive]
94 | filler(buf, ".", NULL, 0, 0);
| ^
| |
| int
* master: (24 commits) Add support for FUSE_CAP_HANDLE_KILLPRIV_V2 Fix FUSE_CAP_DIRECT_IO_ALLOW_MMAP - use new numerical value Install all test/build python packages from requirements.txt fix readdirplus when filler is called with zero offset (libfuse#896) reset got_init after handling FUSE_DESTROY message (libfuse#910) ci-build.sh: Fix checking for function arguments (libfuse#909) Add FUSE_FILL_DIR_DEFAULTS enum (libfuse#903) Fix example/fix-notify_inval_inode.c (libfuse#908) Bump actions/checkout from 4.1.1 to 4.1.2 (libfuse#905) Add final "meson setup --reconfigure" to README.md /test_ctests / test_notify1: Print cmdline on failure Add glibc backtrace to signal handler ci-build.sh: Add back test without versioned symbols Build clang/sanitized build first Fix use-after-free in example/poll.c Add back s-bit for compiled fusermount Fix test failures: Create missing mount dir ci-build.sh: Reduce pytest --maxfail from 99 to 1 ci-build.sh: Always install and add s-bit for fusermount3 ci-build.sh: Run ASAN and UBSAN at the same time ...
* remotes/upstream/master: Fix FUSE_CAP_DIRECT_IO_ALLOW_MMAP - use new numerical value Install all test/build python packages from requirements.txt fix readdirplus when filler is called with zero offset (libfuse#896) reset got_init after handling FUSE_DESTROY message (libfuse#910) ci-build.sh: Fix checking for function arguments (libfuse#909) Add FUSE_FILL_DIR_DEFAULTS enum (libfuse#903)
ref #629 , add this simple enum item to adapt cpp