From patchwork Thu Dec 15 10:44:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel,2/2] Add config sample for disk space monitoring Date: Thu, 15 Dec 2011 10:44:05 -0000 From: Robert Yang X-Patchwork-Id: 17001 Message-Id: <3fc931c6f58975181de95d651f65f137e97997b4.1323944674.git.liezhi.yang@windriver.com> To: Add config sample for disk space monitoring to meta-yocto/conf/local.conf.sample [YOCTO #1589] Signed-off-by: Robert Yang --- meta-yocto/conf/local.conf.sample | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/meta-yocto/conf/local.conf.sample b/meta-yocto/conf/local.conf.sample index ca8636c..d863774 100644 --- a/meta-yocto/conf/local.conf.sample +++ b/meta-yocto/conf/local.conf.sample @@ -222,3 +222,31 @@ PATCHRESOLVE = "noop" # track the version of this file when it was generated. This can safely be ignored if # this doesn't mean anything to you. CONF_VERSION = "1" + +# +# Disk space monitor, warning when the disk space or the amount of inode +# is running low, it is enabled when BB_DISKMON_DIRS is set. +# +# Set the directories to monitor for disk usage, if more than one +# directories are in the same device, then only one directory would be +# warned since the monitor is based on the device. +# +BB_DISKMON_DIRS = "${TMPDIR} ${DL_DIR} ${SSTATE_DIR}" +# +# Set the minimum amount of disk space to warn, the unit can be G, +# M or K, but do not use GB, MB or KB (B is not needed). +# The default vaule is 1G if not set. +# +#BB_DISKMON_MINSPACE = "1G" +# +# Set the minimum amount of inodes to warn, the unit can be G, M or K. +# The default value is 1K if not set. +# +#BB_DISKMON_MININODES = "1K" +# +# Set the monitor frequency, the unit can be h(hour), m(minute) or +# s(second), when no unit is specified, the default unit is s(second), +# for example, "60" means 60 seconds. +# The default value is 60s if not set. +# +#BB_DISKMON_INTERVAL = "60s"