From 0bbdd02a578caf894f82e6ab9360aa9c5635d823 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Sinha Date: Mon, 25 Jun 2018 23:16:48 +0530 Subject: [PATCH] Updating disk storage for FS/Erasure mode (#6081) Updating the disk storage stats for FS/Erasure coded backend --- cmd/fs-v1.go | 1 + cmd/posix.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/fs-v1.go b/cmd/fs-v1.go index 49a6a1afe..f34ef671f 100644 --- a/cmd/fs-v1.go +++ b/cmd/fs-v1.go @@ -201,6 +201,7 @@ func (fs *FSObjects) diskUsage(doneCh chan struct{}) { if err := getDiskUsage(context.Background(), fs.fsPath, usageFn); err != nil { return } + atomic.StoreInt32(&fs.usageRunning, 0) for { select { diff --git a/cmd/posix.go b/cmd/posix.go index a56355591..7bf2ba40e 100644 --- a/cmd/posix.go +++ b/cmd/posix.go @@ -359,6 +359,7 @@ func (s *posix) diskUsage(doneCh chan struct{}) { if err := getDiskUsage(context.Background(), s.diskPath, usageFn); err != nil { return } + atomic.StoreInt32(&s.usageRunning, 0) for { select {