summaryrefslogtreecommitdiffstats
path: root/src/shared/machine-pool.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-03-03 00:13:12 +0100
committerLennart Poettering <lennart@poettering.net>2015-03-03 00:13:12 +0100
commit26166c88e0b47b83972f32b5057ecbffe06bf904 (patch)
treeafff66bbc1b717d9202c16ff1c1b131fa307c272 /src/shared/machine-pool.h
parentman: fix typo (diff)
downloadsystemd-26166c88e0b47b83972f32b5057ecbffe06bf904.tar.xz
systemd-26166c88e0b47b83972f32b5057ecbffe06bf904.zip
importd: automatically grow /var/lib/machines/ loopback filesystem during downloads
If /var/lib/machines is mounted as btrfs loopback file system in /var/lib/machines.raw with this change we automatically grow the file system as it fills up. After each 10M we write to it during imports, we check the free disk space, and if the fill level grows beyond 66% we increase the size of the file system to 3x the fill level (thus lowering it to 33%).
Diffstat (limited to 'src/shared/machine-pool.h')
-rw-r--r--src/shared/machine-pool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/machine-pool.h b/src/shared/machine-pool.h
index 9c9849f618..06c5d40583 100644
--- a/src/shared/machine-pool.h
+++ b/src/shared/machine-pool.h
@@ -24,3 +24,4 @@
#include "sd-bus.h"
int setup_machine_directory(uint64_t size, sd_bus_error *error);
+int grow_machine_directory(void);