summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamantha Jalabert <samantha.jalabert@syslinbit.com>2023-08-24 08:11:10 +0000
committerSteve Sakoman <steve@sakoman.com>2023-11-09 04:44:46 -1000
commit4edf3bf2c63bdc2cd365603059e25115fd10a122 (patch)
tree3b75c746276bcd55c3a776491319f5394fd053e9
parent6c3c62ebc171e16a45f55f276a83a32db075794e (diff)
downloadpoky-4edf3bf2c63bdc2cd365603059e25115fd10a122.tar.gz
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: c7e094ec3beccef0bbbf67c100147c449d9c6836) Signed-off-by: Samantha Jalabert <samantha.jalabert@syslinbit.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--bitbake/lib/bb/monitordisk.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/monitordisk.py b/bitbake/lib/bb/monitordisk.py
index a1b910007d..f928210351 100644
--- a/bitbake/lib/bb/monitordisk.py
+++ b/bitbake/lib/bb/monitordisk.py
@@ -234,9 +234,10 @@ class diskMonitor:
234 freeInode = st.f_favail 234 freeInode = st.f_favail
235 235
236 if minInode and freeInode < minInode: 236 if minInode and freeInode < minInode:
237 # Some filesystems use dynamic inodes so can't run out 237 # Some filesystems use dynamic inodes so can't run out.
238 # (e.g. btrfs). This is reported by the inode count being 0. 238 # This is reported by the inode count being 0 (btrfs) or the free
239 if st.f_files == 0: 239 # inode count being -1 (cephfs).
240 if st.f_files == 0 or st.f_favail == -1:
240 self.devDict[k][2] = None 241 self.devDict[k][2] = None
241 continue 242 continue
242 # Always show warning, the self.checked would always be False if the action is WARN 243 # Always show warning, the self.checked would always be False if the action is WARN