]> xenbits.xensource.com Git - libvirt.git/commit
lxc,qemu: use virCgroupSetupBlkioDevice* helpers
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 17 Feb 2020 21:29:09 +0000 (16:29 -0500)
committerJán Tomko <jtomko@redhat.com>
Sun, 23 Feb 2020 13:02:22 +0000 (14:02 +0100)
commit17e8af6b45a9874d52b4b7cf9b693e4168e388dc
tree8b867f5a8333a2dc2ff03bc25d726d5f933810f3
parent3118b4ee95e4a942c086ad6e23a6cc11f6f9c6a8
lxc,qemu: use virCgroupSetupBlkioDevice* helpers

There are code repetition of set() and get() blkio device
parameters across lxc and qemu files. Use the new vircgroup
helpers to trim the repetition a bit.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/lxc/lxc_cgroup.c
src/lxc/lxc_driver.c
src/qemu/qemu_cgroup.c
src/qemu/qemu_driver.c