Skip to content

alpine getdents64 lost direntries #133

@chengyu-l

Description

@chengyu-l

I run a fuse client in alpine docker container, and then execute "ls -alh |wc -l " command. I found some directories were discarded.

the reason I guess: alpine linux getdents64 buffer size is 2048 byte, and jacobsa fuse is 4096 byte (op.Dst length), alpine cannot hold all the data, so it discards some.

Recurrence steps: create 5000 files in one directory, mount a client in alpine linux, execute "ls -alh |wc -l " command

Other: If I write less data each time(like 64 direntries)when the kenernl call ReadDir function, there will be no problem

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions