machined: if /var/lib/machines is backed by a loop file, resize it on "machinectl set-limit"

System Internals / systemd - Lennart Poettering [poettering.net] - 25 February 2015 17:43 UTC

When the pool size limit is altered with "machinectl set-limit", then not only set the subvolume quota of the /var/lib/machine subvolume, but also resize the backing loop file and the btrfs file system on it dynamically.

efe0286 machined: if /var/lib/machines is backed by a loop file, resize it on "machinectl set-limit"
src/machine/machined-dbus.c | 4 ++
src/shared/btrfs-util.c | 101 ++++++++++++++++++++++++++++++++++++++++---
src/shared/btrfs-util.h | 4 ++
3 files changed, 102 insertions(+), 7 deletions(-)

Upstream: github.com


  • Share