diff options
author | Samantha Jalabert <samantha.jalabert@syslinbit.com> | 2023-08-24 08:11:10 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-25 07:55:34 +0100 |
commit | c8e9590a376c0b63e38167dc522fac4cfbecb5d4 (patch) | |
tree | b309d53b34da9a8557fa878eb91daa9ab63fb733 /bitbake/lib/bb/monitordisk.py | |
parent | c7061c5bded2ef89bd90ce23086372452b1ec687 (diff) | |
download | poky-c8e9590a376c0b63e38167dc522fac4cfbecb5d4.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: 95088b447f563c5e1d9630e6acb32787b5ebed9c)
Signed-off-by: Samantha Jalabert <samantha.jalabert@syslinbit.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/monitordisk.py')
-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 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 |