[GH-ISSUE #1490] May support range cache? #786

Closed
opened 2026-03-04 01:48:47 +03:00 by kerem · 3 comments
Owner

Originally created by @fly3366 on GitHub (Dec 4, 2020).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1490

If anyone(like ffprobe) need only a few parts of large file. A parted cache(with file offset) may better. PR?

Originally created by @fly3366 on GitHub (Dec 4, 2020). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1490 If anyone(like ffprobe) need only a few parts of large file. A parted cache(with file offset) may better. PR?
kerem 2026-03-04 01:48:47 +03:00
  • closed this issue
  • added the
    need info
    label
Author
Owner

@gaul commented on GitHub (Dec 4, 2020):

Doesn't this already work? What kind of behavior do you observe? You can see what s3fs is fetching via -f -o curldbg.

<!-- gh-comment-id:738681952 --> @gaul commented on GitHub (Dec 4, 2020): Doesn't this already work? What kind of behavior do you observe? You can see what s3fs is fetching via `-f -o curldbg`.
Author
Owner

@fly3366 commented on GitHub (Dec 8, 2020):

Sorry, My question:

  1. Can bucketname.stat in cache dir shared between multi s3fs instance?
  2. Can bucket in cache dir shared between multi s3fs instance?
  3. Can s3fs cache object with offset? If I open file's offset like 0-1024K, May s3fs only request with range 0-102400 with curl? But not all file(0 - file end).
<!-- gh-comment-id:740448608 --> @fly3366 commented on GitHub (Dec 8, 2020): Sorry, My question: 1. Can `bucketname.stat` in cache dir shared between multi s3fs instance? 2. Can `bucket` in cache dir shared between multi s3fs instance? 3. Can s3fs cache object with offset? If I open file's offset like 0-1024K, May s3fs only request with range 0-102400 with curl? But not all file(0 - file end).
Author
Owner

@gaul commented on GitHub (Dec 8, 2020):

1&2) are not possible and will lead to data corruption
3) should work this way already. However s3fs will prefetch data equal to multipart_size * parallel_count.

<!-- gh-comment-id:740613798 --> @gaul commented on GitHub (Dec 8, 2020): 1&2) are not possible and will lead to data corruption 3) should work this way already. However s3fs will prefetch data equal to `multipart_size` * `parallel_count`.
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#786
No description provided.