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
freebsd has fs.Bavail as int64
chrislub78a897f14b5
diff --git a/weed/stats/disk_supported.go b/weed/stats/disk_supported.goindex ee7d2d7460..aad065e261 100644--- a/weed/stats/disk_supported.go+++ b/weed/stats/disk_supported.go@@ -20,7 +20,7 @@ func fillInDiskStatus(disk *volume_server_pb.DiskStatus) {// fs.Bfree: Number of free blocks// fs.Bavail: Number of free blocks for unprivileged users// disk.Free = fs.Bfree * uint64(fs.Bsize)- disk.Free = fs.Bavail * uint64(fs.Bsize)+ disk.Free = uint64(fs.Bavail) * uint64(fs.Bsize)disk.Used = disk.All - disk.Freedisk.PercentFree = float32((float64(disk.Free) / float64(disk.All)) * 100)disk.PercentUsed = float32((float64(disk.Used) / float64(disk.All)) * 100)