aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamantha Jalabert <samantha.jalabert@syslinbit.com>2023-08-24 08:11:10 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-11-09 12:49:58 +0000
commite477a9cb3e794560a05ed5686808b38e0deaede0 (patch)
treeca8a1516ca041b48ca47e1e930a8b70f78ebf221
parent0ca5004fc7a34c0d1b7ac3a3c37fed8916d7569d (diff)
downloadbitbake-2.2.tar.gz
Fix disk space monitoring on cephfs2.2
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"! Signed-off-by: Samantha Jalabert <samantha.jalabert@syslinbit.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/monitordisk.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/bb/monitordisk.py b/lib/bb/monitordisk.py
index a1b910007..f92821035 100644
--- a/lib/bb/monitordisk.py
+++ b/lib/bb/monitordisk.py
@@ -234,9 +234,10 @@ class diskMonitor:
freeInode = st.f_favail
if minInode and freeInode < minInode:
- # Some filesystems use dynamic inodes so can't run out
- # (e.g. btrfs). This is reported by the inode count being 0.
- if st.f_files == 0:
+ # Some filesystems use dynamic inodes so can't run out.
+ # This is reported by the inode count being 0 (btrfs) or the free
+ # inode count being -1 (cephfs).
+ if st.f_files == 0 or st.f_favail == -1:
self.devDict[k][2] = None
continue
# Always show warning, the self.checked would always be False if the action is WARN