]> git.ipfire.org Git - thirdparty/systemd.git/commit
importd: automatically grow /var/lib/machines/ loopback filesystem during downloads
authorLennart Poettering <lennart@poettering.net>
Mon, 2 Mar 2015 23:13:12 +0000 (00:13 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 2 Mar 2015 23:13:12 +0000 (00:13 +0100)
commit26166c88e0b47b83972f32b5057ecbffe06bf904
treeafff66bbc1b717d9202c16ff1c1b131fa307c272
parenta68188812290cb9ec9f3f8a17b65e64549a4fd65
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/import/import-dkr.c
src/import/import-job.c
src/import/import-job.h
src/import/import-raw.c
src/import/import-tar.c
src/machine/machined-dbus.c
src/shared/btrfs-util.c
src/shared/btrfs-util.h
src/shared/machine-pool.c
src/shared/machine-pool.h