diff options
author | Samantha Jalabert <samantha.jalabert@syslinbit.com> | 2023-08-24 08:11:10 +0000 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-11-09 04:38:54 -1000 |
commit | e66a386604b21090daec1bde16640756ad777fb0 (patch) | |
tree | 1250b767ef63e48429cf04205a1c19f17fc3248b /bitbake/lib | |
parent | aeac1034661725b5c83e79f76238429fb236b090 (diff) | |
download | poky-e66a386604b21090daec1bde16640756ad777fb0.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: 3c7b210e9599058a48d0c38ce8034b94e2d0f781)
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/monitordisk.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/monitordisk.py b/bitbake/lib/bb/monitordisk.py index e7c07264a8..4d243af30b 100644 --- a/bitbake/lib/bb/monitordisk.py +++ b/bitbake/lib/bb/monitordisk.py | |||
@@ -229,9 +229,10 @@ class diskMonitor: | |||
229 | freeInode = st.f_favail | 229 | freeInode = st.f_favail |
230 | 230 | ||
231 | if minInode and freeInode < minInode: | 231 | if minInode and freeInode < minInode: |
232 | # Some filesystems use dynamic inodes so can't run out | 232 | # Some filesystems use dynamic inodes so can't run out. |
233 | # (e.g. btrfs). This is reported by the inode count being 0. | 233 | # This is reported by the inode count being 0 (btrfs) or the free |
234 | if st.f_files == 0: | 234 | # inode count being -1 (cephfs). |
235 | if st.f_files == 0 or st.f_favail == -1: | ||
235 | self.devDict[k][2] = None | 236 | self.devDict[k][2] = None |
236 | continue | 237 | continue |
237 | # Always show warning, the self.checked would always be False if the action is WARN | 238 | # Always show warning, the self.checked would always be False if the action is WARN |