1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-25 18:50:18 +03:00

machine: tests for io.systemd.MachineImage.SetPoolLimit

This commit is contained in:
Ivan Kruglov 2025-01-09 16:24:32 +01:00
parent 8342390161
commit 4daecc8af5

View File

@ -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