SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
mount: adjust disk space based on quota
chrislu46a28b8819b9
diff --git a/weed/mount/weedfs_stats.go b/weed/mount/weedfs_stats.goindex 0da41ab0b4..21f6648893 100644--- a/weed/mount/weedfs_stats.go+++ b/weed/mount/weedfs_stats.go@@ -57,6 +57,13 @@ func (wfs *WFS) StatFs(cancel <-chan struct{}, in *fuse.InHeader, out *fuse.StatusedDiskSize := wfs.stats.UsedSizeactualFileCount := wfs.stats.FileCount+ if wfs.option.Quota > 0 && totalDiskSize > uint64(wfs.option.Quota) {+ totalDiskSize = uint64(wfs.option.Quota)+ if usedDiskSize > totalDiskSize {+ totalDiskSize = usedDiskSize+ }+ }+// Compute the total number of available blocksout.Blocks = totalDiskSize / blockSize