Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot see directory content in Midnight Commander #43

Open
messani opened this issue May 10, 2022 · 0 comments
Open

Cannot see directory content in Midnight Commander #43

messani opened this issue May 10, 2022 · 0 comments

Comments

@messani
Copy link

messani commented May 10, 2022

System verison: Kubuntu 22.04
Midnight commander version: 4.8.27
littlefs version: v2.5
littlefs disk version: v2.0
FUSE library version: 2.9.9
fusermount3 version: 3.10.5
using FUSE kernel interface version 7.19

Description:
I mount filesystem ($l is loop device]:
lfs --block_size=4096 --block_count=32 --block_cycles=500 --read_size=1 --prog_size=256 --cache_size=256 --lookahead_size=16 $l mount

If I use ls -l, I can see files/directories in mounted directory. If I use midnight commander, mount directory seems to be empty.
I debugged your code and found out that lfs_fuse_readdir is called twice when content of directory in midnight commander is loaded. Second call to this function does not find any file/directory.

I worked around this by calling:
lfs_dir_rewind(&lfs, dir);
before while loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant