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:41:17 -1000 |
commit | a171408008bfbb89446112f3dbc543f35f76b335 (patch) | |
tree | ab52e636672cc05c3cbd176b3be2ec0770b2ae07 /bitbake | |
parent | 8d57eddc826e2f3343ff00a145c7b35a934dc182 (diff) | |
download | poky-a171408008bfbb89446112f3dbc543f35f76b335.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: a7f6c3e67bd9170e93b2b94676e84018faf0df91)
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')
-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 |