]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
local.conf.sample: Enable disk space monitoring by default
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 26 Nov 2012 15:09:18 +0000 (15:09 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 27 Nov 2012 08:57:10 +0000 (08:57 +0000)
Running out of space is a serious issue and can corrupt the build. Since
we can prevent it at minimal overhead, we might as well enable it by default.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-yocto/conf/local.conf.sample

index 23af275e166ab8f98b7bc60d8891fdce670a6cd6..200b4afc86c11381edc4b3b788b2243af7e5ad86 100644 (file)
@@ -205,6 +205,22 @@ USER_CLASSES ?= "buildstats image-mklibs image-prelink"
 # By default disable interactive patch resolution (tasks will just fail instead):
 PATCHRESOLVE = "noop"
 
+#
+# Disk Space Monitoring during the build
+#
+# Monitor the disk space during the build. If there is less that 1GB of space or less
+# than 100K inodes in any key build location (TMPDIR, DL_DIR, SSTATE_DIR), gracefully
+# shutdown the build. If there is less that 100MB or 1K inodes, perform a hard abort
+# of the build. The reason for this is that running completely out of space can corrupt
+# files and damages the build in ways which may not be easily recoverable.
+BB_DISKMON_DIRS = "\
+    STOPTASKS,${TMPDIR},1G,100K \
+    STOPTASKS,${DL_DIR},1G,100K \
+    STOPTASKS,${SSTATE_DIR},1G,100K \
+    ABORT,${TMPDIR},100M,1K \
+    ABORT,${DL_DIR},100M,1K \
+    ABORT,${SSTATE_DIR},100M,1K" 
+
 #
 # Shared-state files from other locations
 #