mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 21:34:21 +00:00
code cleanup
This commit is contained in:
parent
ba02e591f0
commit
3a515a8805
@ -70,11 +70,8 @@ PVE::JSONSchema::register_standard_option('pve-snapshot-name', {
|
|||||||
sub cgroups_write {
|
sub cgroups_write {
|
||||||
my ($controller, $vmid, $option, $value) = @_;
|
my ($controller, $vmid, $option, $value) = @_;
|
||||||
|
|
||||||
my $root_path = "/sys/fs/cgroup/";
|
my $path = "/sys/fs/cgroup/$controller/qemu.slice/$vmid.scope/$option";
|
||||||
my $vm_path = $root_path.$controller."/qemu.slice/$vmid.scope";
|
PVE::ProcFSTools::write_proc_entry($path, $value);
|
||||||
return if !$vm_path;
|
|
||||||
|
|
||||||
PVE::ProcFSTools::write_proc_entry("$vm_path/$option", $value);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user