From 26166c88e0b47b83972f32b5057ecbffe06bf904 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 3 Mar 2015 00:13:12 +0100 Subject: 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%). --- src/shared/machine-pool.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/shared/machine-pool.h') 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); -- cgit v1.2.3-54-g00ecf