summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-01-19 23:29:16 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-21 14:37:39 +0000
commitc6f933e5cfdaddff9e7a5f1b73af32818da7d5eb (patch)
tree6c81227b2bbc0da95ed41422a59c8f81ac441cd0 /bitbake
parente63723f59ad2f1e2e1ed11697e5bd18ca8b3b73e (diff)
downloadpoky-c6f933e5cfdaddff9e7a5f1b73af32818da7d5eb.tar.gz
bitbake: cooker.py: trap the ENOSPC error and translate it
Trap the ENOSPC error and translate it into a human readable error message, which is good for debugging. (Bitbake rev: 2b084dff6ff0d274fbbf7ab07022507f7249e427) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cooker.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 554dfbd24d..d9b200e129 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -198,6 +198,11 @@ class BBCooker:
198 f = os.path.dirname(f) 198 f = os.path.dirname(f)
199 watcher.bbseen.append(f) 199 watcher.bbseen.append(f)
200 continue 200 continue
201 if 'ENOSPC' in str(e):
202 providerlog.error("No space left on device or exceeds fs.inotify.max_user_watches?")
203 providerlog.error("To check max_user_watches: sysctl -n fs.inotify.max_user_watches.")
204 providerlog.error("To modify max_user_watches: sysctl -n -w fs.inotify.max_user_watches=<value>.")
205 providerlog.error("Root privilege is required to modify max_user_watches.")
201 raise 206 raise
202 207
203 def sigterm_exception(self, signum, stackframe): 208 def sigterm_exception(self, signum, stackframe):