(Background: @McBane87 and I are trying to upgrade bindfs to FUSE 3.)
Always passing 0 as the offset to the readdir filler function ("mode 1" in fuse.h) causes clients to always see d_ino == -1 when they readdir (test program).
- The
passthrough example exhibits this problem, but passthrough_fh and passthrough_ll don't.
use_ino is set.
- It doesn't matter whether
FUSE_FILL_DIR_PLUS is passed.
Possible fix
On this line, remove off && .
Then passthrough passes through inode numbers if I just change it to (always) pass FUSE_FILL_DIR_PLUS.
I don't know the code well enough to tell whether that change is safe. It doesn't break any tests at least.
(Background: @McBane87 and I are trying to upgrade bindfs to FUSE 3.)
Always passing 0 as the offset to the readdir filler function ("mode 1" in
fuse.h) causes clients to always seed_ino == -1when they readdir (test program).passthroughexample exhibits this problem, butpassthrough_fhandpassthrough_lldon't.use_inois set.FUSE_FILL_DIR_PLUSis passed.Possible fix
On this line, remove
off &&.Then
passthroughpasses through inode numbers if I just change it to (always) passFUSE_FILL_DIR_PLUS.I don't know the code well enough to tell whether that change is safe. It doesn't break any tests at least.