]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machine: tests for io.systemd.MachineImage.SetPoolLimit 35953/head
authorIvan Kruglov <mail@ikruglov.com>
Thu, 9 Jan 2025 15:24:32 +0000 (16:24 +0100)
committerIvan Kruglov <mail@ikruglov.com>
Wed, 15 Jan 2025 10:47:58 +0000 (02:47 -0800)
test/units/TEST-13-NSPAWN.machined.sh

index 4bd663117f4c8ad5830792adb31610e58195ed51..3566f9fb9995932e700e65f5a9ffff117abcfb04 100755 (executable)
@@ -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