From: Ivan Kruglov Date: Thu, 9 Jan 2025 15:24:32 +0000 (+0100) Subject: machine: tests for io.systemd.MachineImage.SetPoolLimit X-Git-Tag: v258-rc1~1599^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4daecc8af54d7fa4218eb6c3eb8a7af442cd0f91;p=thirdparty%2Fsystemd.git machine: tests for io.systemd.MachineImage.SetPoolLimit --- diff --git a/test/units/TEST-13-NSPAWN.machined.sh b/test/units/TEST-13-NSPAWN.machined.sh index 4bd663117f4..3566f9fb999 100755 --- a/test/units/TEST-13-NSPAWN.machined.sh +++ b/test/units/TEST-13-NSPAWN.machined.sh @@ -455,3 +455,9 @@ varlinkctl call /run/systemd/machine/io.systemd.MachineImage io.systemd.MachineI # test io.systemd.MachineImage.Remove varlinkctl call /run/systemd/machine/io.systemd.MachineImage io.systemd.MachineImage.Remove '{"name":"long-running-cloned"}' (! varlinkctl call /run/systemd/machine/io.systemd.MachineImage io.systemd.MachineImage.List '{"name":"long-running-cloned"}') + +# test io.systemd.MachineImage.SetPoolLimit +FSTYPE="$(stat --file-system --format "%T" /var/lib/machines)" +if [[ "$FSTYPE" == "btrfs" ]]; then + varlinkctl call /run/systemd/machine/io.systemd.MachineImage io.systemd.MachineImage.SetPoolLimit '{"limit": 18446744073709551615}' # UINT64_MAX +fi