aboutsummaryrefslogtreecommitdiff
path: root/weed/stats/disk.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/stats/disk.go')
-rw-r--r--weed/stats/disk.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/weed/stats/disk.go b/weed/stats/disk.go
new file mode 100644
index 000000000..46d8c465e
--- /dev/null
+++ b/weed/stats/disk.go
@@ -0,0 +1,14 @@
+package stats
+
+type DiskStatus struct {
+ Dir string
+ All uint64
+ Used uint64
+ Free uint64
+}
+
+func NewDiskStatus(path string) (disk *DiskStatus) {
+ disk = &DiskStatus{Dir: path}
+ disk.fillInStatus()
+ return
+}