summaryrefslogtreecommitdiffstats
path: root/lib/bb/cooker.py
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 11:36:27 +0000
commit2b084dff6ff0d274fbbf7ab07022507f7249e427 (patch)
tree8ffc9c9156b94ee78a6308c6f7ad30c0e65b0157 /lib/bb/cooker.py
parenta2d441237916a99405b800c1a3dc39f860100a8c (diff)
downloadopenembedded-core-contrib-2b084dff6ff0d274fbbf7ab07022507f7249e427.tar.gz
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. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r--lib/bb/cooker.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 554dfbd24d..d9b200e129 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -198,6 +198,11 @@ class BBCooker:
f = os.path.dirname(f)
watcher.bbseen.append(f)
continue
+ if 'ENOSPC' in str(e):
+ providerlog.error("No space left on device or exceeds fs.inotify.max_user_watches?")
+ providerlog.error("To check max_user_watches: sysctl -n fs.inotify.max_user_watches.")
+ providerlog.error("To modify max_user_watches: sysctl -n -w fs.inotify.max_user_watches=<value>.")
+ providerlog.error("Root privilege is required to modify max_user_watches.")
raise
def sigterm_exception(self, signum, stackframe):