mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
Make hugepages comparison work on 32-bit platforms
This commit is contained in:
parent
8b9e8cf80a
commit
808c31ae1e
@ -51,7 +51,7 @@ func (m *realMountDetector) GetMountMedium(path string) (storageMedium, bool, er
|
|||||||
glog.V(5).Infof("Statfs_t of %v: %+v", path, buf)
|
glog.V(5).Infof("Statfs_t of %v: %+v", path, buf)
|
||||||
if buf.Type == linuxTmpfsMagic {
|
if buf.Type == linuxTmpfsMagic {
|
||||||
return mediumMemory, !notMnt, nil
|
return mediumMemory, !notMnt, nil
|
||||||
} else if buf.Type == linuxHugetlbfsMagic {
|
} else if int64(buf.Type) == linuxHugetlbfsMagic {
|
||||||
return mediumHugepages, !notMnt, nil
|
return mediumHugepages, !notMnt, nil
|
||||||
}
|
}
|
||||||
return mediumUnknown, !notMnt, nil
|
return mediumUnknown, !notMnt, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user