chiark / gitweb /
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)
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%).


No differences found