Adds a check if an unprivileged container is configured to use
quota on any of its mountpoints. If so an understandable error
message is given. Ideally I'd like to catch those
configurations on the GUI, too, to avoid users just running
into it.
PVE::LXC::Config->check_lock($conf);
}
+ if ($conf->{unprivileged}) {
+ PVE::LXC::Config->foreach_mountpoint($conf, sub {
+ my ($ms, $mountpoint) = @_;
+ die "Quotas are not supported by unprivileged containers.\n" if $mountpoint->{quota};
+ });
+
+ }
+
my $storage_cfg = cfs_read_file("storage.cfg");
PVE::LXC::update_lxc_config($vmid, $conf);