-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to properly detect if storage is full? #11
Comments
I updated the Usage function in storage.go. the storage.Usage function now should be thread-safe. you can call it anytime you want. the output is like this:
|
Thread-safe is nice to have, since it's already handled in upper layer: https://github.com/journeymidnight/seaweedfs/blob/yig2/weed/storage/volume_read_write.go#L92 And what about case 3: |
You are brilliant to notice this corner case. Since the the data is aligned to |
I think free space could be fragmented. |
Done in commit#806dfbba |
As I can see, there're several limitations:
file system is full, which is avoided by pre-allocationUpper layer application needs this information to determine if a volume is still writable, maybe this could be reported by
Usage
.The text was updated successfully, but these errors were encountered: