mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
bitbake: Fix disk space monitoring on cephfs
Error occured while running bitbake on cephfs: WARNING: The free inode of path is running low (-0.001K left) ERROR: Immediately halt since the disk space monitor action is "HALT"! (Bitbake rev: 95088b447f563c5e1d9630e6acb32787b5ebed9c) Signed-off-by: Samantha Jalabert <samantha.jalabert@syslinbit.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c7061c5bde
commit
c8e9590a37
@@ -234,9 +234,10 @@ class diskMonitor:
|
|||||||
freeInode = st.f_favail
|
freeInode = st.f_favail
|
||||||
|
|
||||||
if minInode and freeInode < minInode:
|
if minInode and freeInode < minInode:
|
||||||
# Some filesystems use dynamic inodes so can't run out
|
# Some filesystems use dynamic inodes so can't run out.
|
||||||
# (e.g. btrfs). This is reported by the inode count being 0.
|
# This is reported by the inode count being 0 (btrfs) or the free
|
||||||
if st.f_files == 0:
|
# inode count being -1 (cephfs).
|
||||||
|
if st.f_files == 0 or st.f_favail == -1:
|
||||||
self.devDict[k][2] = None
|
self.devDict[k][2] = None
|
||||||
continue
|
continue
|
||||||
# Always show warning, the self.checked would always be False if the action is WARN
|
# Always show warning, the self.checked would always be False if the action is WARN
|
||||||
|
|||||||
Reference in New Issue
Block a user