diff options
author | Ivan Shapovalov <intelfx@intelfx.name> | 2022-11-29 16:20:48 +0400 |
---|---|---|
committer | Ivan Shapovalov <intelfx@intelfx.name> | 2022-12-03 20:31:48 +0400 |
commit | c7779a61ac20133646aaeaee2986d4e0901f4861 (patch) | |
tree | 335867aaa64b640f2ccc94795830cec028cde659 /src/machine/machined-dbus.c | |
parent | e9231901a2df0484b1eda70d6bed9f4f7cefac64 (diff) | |
download | systemd-c7779a61ac20133646aaeaee2986d4e0901f4861.tar.gz |
import: wire up SYSTEMD_IMPORT_BTRFS_{SUBVOL,QUOTA} to importd
Btrfs quotas are actually being enabled in systemd-importd via
setup_machine_directory(), not in systemd-{import,pull} where those
environment variables are checked. Therefore, also check them in
systemd-importd and avoid enabling quotas if requested by the user.
Fixes: #18421
Fixes: #15903
Fixes: #24387
Diffstat (limited to 'src/machine/machined-dbus.c')
-rw-r--r-- | src/machine/machined-dbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machined-dbus.c b/src/machine/machined-dbus.c index e2d0784857..56dd22d757 100644 --- a/src/machine/machined-dbus.c +++ b/src/machine/machined-dbus.c @@ -863,7 +863,7 @@ static int method_set_pool_limit(sd_bus_message *message, void *userdata, sd_bus return 1; /* Will call us back */ /* Set up the machine directory if necessary */ - r = setup_machine_directory(error); + r = setup_machine_directory(error, /* use_btrfs_subvol= */ true, /* use_btrfs_quota= */ true); if (r < 0) return r; |