[GH-ISSUE #2359] can s3fs show the real capacity of bucket #1163

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

Originally created by @JayjieL on GitHub (Oct 31, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2359

hi,
in my case, df -h show that the mounted bucket has 64P capacity, it's abnormal.
i wonder whether s3fs can show the real capacity of bucket.
hope for your reply, thanks.

image

Originally created by @JayjieL on GitHub (Oct 31, 2023). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2359 hi, in my case, df -h show that the mounted bucket has 64P capacity, it's abnormal. i wonder whether s3fs can show the real capacity of bucket. hope for your reply, thanks. ![image](https://github.com/s3fs-fuse/s3fs-fuse/assets/39478235/d7f8eac1-8996-48ca-8584-43e9d32dccc4)
kerem closed this issue 2026-03-04 01:51:50 +03:00
Author
Owner

@JayjieL commented on GitHub (Oct 31, 2023):

What is the meaning of 64P?

<!-- gh-comment-id:1787108404 --> @JayjieL commented on GitHub (Oct 31, 2023): What is the meaning of 64P?
Author
Owner

@gaul commented on GitHub (Oct 31, 2023):

No s3fs cannot do this since this S3 does not provide an API for capacity. The alternative would require listing every object in the bucket, potentially an expensive operation. 64P refers to 64 petabytes which is the largest possible value.

<!-- gh-comment-id:1788155514 --> @gaul commented on GitHub (Oct 31, 2023): No s3fs cannot do this since this S3 does not provide an API for capacity. The alternative would require listing every object in the bucket, potentially an expensive operation. 64P refers to 64 petabytes which is the largest possible value.
Author
Owner

@OttaviaB commented on GitHub (Dec 1, 2023):

Hello,
s3fs cannot compute the size for you, but if you already know the size by some other means you can set it by hand when mounting the bucket with the option bucket_size, available in version 1.92 and above.
This will then show up correctly in df -h.

<!-- gh-comment-id:1836356899 --> @OttaviaB commented on GitHub (Dec 1, 2023): Hello, `s3fs` cannot compute the size for you, but if you already know the size by some other means you can set it by hand when mounting the bucket with the option `bucket_size`, available in version 1.92 and above. This will then show up correctly in `df -h`.
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#1163
No description provided.