Verify that fsType is found for device
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
This commit is contained in:
parent
9268b49cf4
commit
b321dc68e8
@ -272,6 +272,9 @@ func (self *crioContainerHandler) getFsStats(stats *info.ContainerStats) error {
|
||||
}
|
||||
}
|
||||
|
||||
if fsType == "" {
|
||||
return fmt.Errorf("unable to determine fs type for device: %v", device)
|
||||
}
|
||||
fsStat := info.FsStats{Device: device, Type: fsType, Limit: limit}
|
||||
usage := self.fsHandler.Usage()
|
||||
fsStat.BaseUsage = usage.BaseUsageBytes
|
||||
|
Loading…
Reference in New Issue
Block a user