[PATCH 0/7] Abort early if there is not enough space

Richard Maw richard.maw at codethink.co.uk
Tue Jun 4 17:52:40 BST 2013


Repo: git://git.baserock.org/baserock/baserock/morph.git
Ref:  baserock/richardmaw/S7904-warn-disk-full
Sha1: 51a55e94d93c4a04276a189abf7260ea7fc4a9ba 
Land: master

This adds two new configuration flags:
tempdir-min-space and cachedir-min-space.

They both default to 10G.

If you have less space than that available when you start
a build or a deploy, then it will fail immediately, rather than
later when you're half-way through a build.

It will sum the figures if it can detect that both directories
are on the same disk, hence have the same storage pool. So in
our default configuration you need 20G free on /src to be able
to build.

Different disk detection is not infalliable, multiple subvolumes
on btrfs will be treated as different disks.

Richard Maw (7):
  util: Fix a missing import in combine_aliases
  S7904: Move cache settings to storage options
  S7904: add new config options for minimum sizes
  S7904: add method for finding bytes free in path
  S7904: method for testing paths are on the same fs
  S7904: method for checking disk space is available
  S7904: Add disk space checks before build & deploy

 morphlib/app.py                             |   38 +++++++++++++++++++-------
 morphlib/plugins/branch_and_merge_plugin.py |    7 +++++
 morphlib/plugins/build_plugin.py            |    7 +++++
 morphlib/plugins/deploy_plugin.py           |    9 +++++++
 morphlib/util.py                            |   39 ++++++++++++++++++++++++++-
 5 files changed, 89 insertions(+), 11 deletions(-)

-- 
1.7.10.4




More information about the baserock-dev mailing list