From: Lennart Poettering Date: Tue, 24 Feb 2015 16:23:53 +0000 (+0100) Subject: importd: create a loopback btrfs file system for /var/lib/machines, if necessary X-Git-Tag: v219.0~590 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=113b3fc1a8061f4a24dd0db74e9a3cd0083b2251;hp=113b3fc1a8061f4a24dd0db74e9a3cd0083b2251 importd: create a loopback btrfs file system for /var/lib/machines, if necessary When manipulating container and VM images we need efficient and atomic directory snapshots and file copies, as well as disk quota. btrfs provides this, legacy file systems do not. Hence, implicitly create a loopback file system in /var/lib/machines.raw and mount it to /var/lib/machines, if that directory is not on btrfs anyway. This is done implicitly and transparently the first time the user invokes "machinectl import-xyz". This allows us to take benefit of btrfs features for container management without actually having the rest of the system use btrfs. The loopback is sized 500M initially. Patches to grow it dynamically are to follow. ---