Skip to content

alpine getdents64 lost direntries #133

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions