From: dongshengyuan <545258830@qq.com> Date: Wed, 15 Jul 2026 08:49:10 +0000 (+0800) Subject: portabled: apply pool limits to portable images X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=ddf196a20bb5b9a5bbfead2cc8205fa89e527555;p=thirdparty%2Fsystemd.git portabled: apply pool limits to portable images Apply SetPoolLimit to IMAGE_PORTABLE instead of IMAGE_MACHINE. The manager property and the setter now refer to the same portable image pool. Reproducer: sudo portablectl set-limit 1G busctl get-property org.freedesktop.portable1 \ /org/freedesktop/portable1 \ org.freedesktop.portable1.Manager PoolLimit Before: SetPoolLimit adjusted the machine image pool while portablectl reported the portable image pool. The command could succeed without changing the limit that portable users queried later. Follow-up: 824fcb95c9e66abe6b350ebab6e0593498ff7aa1 --- diff --git a/src/portable/portabled-bus.c b/src/portable/portabled-bus.c index aec0793fcdf..e940f73de5a 100644 --- a/src/portable/portabled-bus.c +++ b/src/portable/portabled-bus.c @@ -381,7 +381,7 @@ static int method_set_pool_limit(sd_bus_message *message, void *userdata, sd_bus return 1; /* Will call us back */ } - r = image_set_pool_limit(m->runtime_scope, IMAGE_MACHINE, limit); + r = image_set_pool_limit(m->runtime_scope, IMAGE_PORTABLE, limit); if (ERRNO_IS_NEG_NOT_SUPPORTED(r)) return sd_bus_error_set(error, SD_BUS_ERROR_NOT_SUPPORTED, "Quota is only supported on btrfs."); if (r < 0)