We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 84be953 + 1a86b57 commit 109af09Copy full SHA for 109af09
container/common/fsHandler.go
@@ -96,7 +96,12 @@ func (fh *realFsHandler) update() error {
96
fh.usage.TotalUsageBytes = rootUsage.Bytes
97
}
98
if fh.extraDir != "" && extraErr == nil {
99
- fh.usage.TotalUsageBytes += extraUsage.Bytes
+ if fh.rootfs != "" {
100
+ fh.usage.TotalUsageBytes += extraUsage.Bytes
101
+ } else {
102
+ // rootfs is empty, totalUsageBytes use extra usage bytes
103
+ fh.usage.TotalUsageBytes = extraUsage.Bytes
104
+ }
105
106
107
// Combine errors into a single error to return
0 commit comments