summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2014-09-25 15:28:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-29 12:08:48 +0100
commit249a0e937d554152ab9ade6ab1f8f7e78288d402 (patch)
treed9c2e7d6766a1d03defb65c4322ec58432bc8c31
parent8ac8eca2e3bd8c78e2b31ea974930ed0243258a3 (diff)
downloadpoky-249a0e937d554152ab9ade6ab1f8f7e78288d402.tar.gz
bitbake: monitordisk: don't log when not monitoring a filesystem for inodes
Writing a log that the filesystem isn't being monitored for inode usage just confuses users who are not aware about the nature of inodes in their filesystem, so don't say anything, just silently disable the monitor. In general this only happens on filesystems which don't have a limit on inodes. (Bitbake rev: ca93bc84ee5fb94a50c11c47e4d212d7da649e24) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/monitordisk.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bitbake/lib/bb/monitordisk.py b/bitbake/lib/bb/monitordisk.py
index 6b03682584..466523c6e4 100644
--- a/bitbake/lib/bb/monitordisk.py
+++ b/bitbake/lib/bb/monitordisk.py
@@ -239,11 +239,9 @@ class diskMonitor:
239 freeInode = st.f_favail 239 freeInode = st.f_favail
240 240
241 if minInode and freeInode < minInode: 241 if minInode and freeInode < minInode:
242 # Some fs formats' (e.g., btrfs) statvfs.f_files (inodes) is 242 # Some filesystems use dynamic inodes so can't run out
243 # zero, this is a feature of the fs, we disable the inode 243 # (e.g. btrfs). This is reported by the inode count being 0.
244 # checking for such a fs.
245 if st.f_files == 0: 244 if st.f_files == 0:
246 logger.info("Inode check for %s is unavaliable, will remove it from disk monitor" % path)
247 self.devDict[k][2] = None 245 self.devDict[k][2] = None
248 continue 246 continue
249 # Always show warning, the self.checked would always be False if the action is WARN 247 # Always show warning, the self.checked would always be False if the action is WARN