From: Lennart Poettering Date: Mon, 2 Mar 2015 18:35:50 +0000 (+0100) Subject: man: document that machinectl set-limit creates a btrfs loopback too X-Git-Tag: v219.0~524 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=7de304525deafe4eb86060321e39787138dbbadf man: document that machinectl set-limit creates a btrfs loopback too --- diff --git a/man/machinectl.xml b/man/machinectl.xml index b50f03f36..55bb694e6 100644 --- a/man/machinectl.xml +++ b/man/machinectl.xml @@ -508,16 +508,32 @@ set-limit [NAME] BYTES Sets the maximum size in bytes a specific - container or VM image, or all images may grow up to - (quota). Takes either one or two parameters. The first, + container or VM image, or all images may grow up to on disk + (disk quota). Takes either one or two parameters. The first, optional parameter refers to a container or VM image name. If - specified the size limit of the specified images is - changed. If omitted the overall size limit of the sum of all - images stored locally is changed. The final argument specifies - the size limit in bytes, possibly suffixed by the usual K, M, - G, T units. If the size limit shall be disabled, specify - - as size. This operation is currently only - supported on btrfs subvolume images. + specified the size limit of the specified image is changed. If + omitted the overall size limit of the sum of all images stored + locally is changed. The final argument specifies the size + limit in bytes, possibly suffixed by the usual K, M, G, T + units. If the size limit shall be disabled, specify + - as size. + + Note that per-container size limits are only supported + on btrfs file systems. Also note that if + set-limit is invoked without image + parameter, and /var/lib/machines is + empty, and the directory is not located on btrfs, a btrfs + loopback file is implicitly created as + /var/lib/machines.raw with the given + size, and mounted to + /var/lib/machines. The size of the + loopback may later be readjusted with + set-limit, as well. If such a + loopback-mounted /var/lib/machines + directory is used set-limit without image + name alters both the quota setting within the file system as + well as the loopback file and file system size + itself. @@ -686,6 +702,17 @@ /var/lib/machines/ to make them available for control with machinectl. + Note that many image operations are only supported, + efficient or atomic on btrfs file systems. Due to this, if the + pull-tar, pull-raw, + pull-dkr and set-limit + commands notice that /var/lib/machines is + empty and not located on btrfs, they will implicitly set up a + loopback file /var/lib/machines.raw + containing a btrfs file system that is mounted to + /var/lib/machines. The size of this loopback + file may be controlled dynamically with set-limit. + Disk images are understood by systemd-nspawn1 and machinectl in three formats: