Skip to content

Commit

Permalink
Remove stat log which occurs too often
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Durbin <andrewd@zededa.com>
(cherry picked from commit 18a15c5)
  • Loading branch information
andrewd-zededa authored and milan-zededa committed Jul 3, 2024
1 parent ff855da commit a7fe529
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/pillar/diskmetrics/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ func SizeFromDir(log *base.LogObject, dirname string) (uint64, error) {
// Use full syscall.Stat_t to get the allocated size
allocatedBytes, err := StatAllocatedBytes(filename)
if err != nil {
log.Errorf("StatAllocatedBytes: %s failed %s treating as fully allocated\n", filename, err)
allocatedBytes = uint64(location.Size())
}
// Fully Allocated: don't use allocated bytes
Expand Down

0 comments on commit a7fe529

Please sign in to comment.