#include "cgroup-util.h"
#include "btrfs-util.h"
#include "machine-image.h"
+#include "machine-pool.h"
#include "image-dbus.h"
#include "machined.h"
#include "machine-dbus.h"
if (r == 0)
return 1; /* Will call us back */
+ /* Set up the machine directory if necessary */
+ r = setup_machine_directory(limit, error);
+ if (r < 0)
+ return r;
+
r = btrfs_resize_loopback("/var/lib/machines", limit);
if (r < 0 && r != -ENODEV)
return sd_bus_error_set_errnof(error, r, "Failed to adjust loopback limit: %m");