[GH-ISSUE #2636] Case of failure to get file list in dir by readdir_multi_head(v1.95) bug #1257

Open
opened 2026-03-04 01:52:36 +03:00 by kerem · 0 comments
Owner

Originally created by @ggtakec on GitHub (Jan 19, 2025).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2636

The problem commented on in #2612 does not seem to occur only when IAM role is specified.
https://github.com/s3fs-fuse/s3fs-fuse/blob/v1.95/src/curl_multi.cpp#L168

Because of this bug, if an error(other than a 200 response) occurs in multiple head requests(in threads), that request will result in an error.
For example, if there is even one object in a directory that cannot be read (ex. due to permissions or encryption), file listing will not be possible.
It will look like this:

$ ls
ls: reading directory .: Operation not permitted

I will share this information for future support.

Originally created by @ggtakec on GitHub (Jan 19, 2025). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2636 The problem commented on in #2612 does not seem to occur only when `IAM role` is specified. https://github.com/s3fs-fuse/s3fs-fuse/blob/v1.95/src/curl_multi.cpp#L168 Because of this bug, if an error(other than a 200 response) occurs in multiple head requests(in threads), that request will result in an error. For example, if there is even one object in a directory that cannot be read (ex. due to permissions or encryption), file listing will not be possible. It will look like this: ``` $ ls ls: reading directory .: Operation not permitted ``` _I will share this information for future support._
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#1257
No description provided.