[PATCH v2 11/14] domain_cgroup.c: add virDomainCgroupSetupDomainBlkioParameters()

Ján Tomko jtomko at redhat.com
Sun Feb 23 12:58:11 UTC 2020


On Mon, Feb 17, 2020 at 04:29:18PM -0500, Daniel Henrique Barboza wrote:
>After the introduction of virDomainDriverMergeBlkioDevice() in a
>previous patch, it is now clear that lxcDomainSetBlkioParameters() and
>qemuDomainSetBlkioParameters() uses the same loop to set cgroup
>blkio parameter of a domain.
>
>Avoid the repetition by adding a new helper called
>virDomainCgroupSetupDomainBlkioParameters().
>
>Signed-off-by: Daniel Henrique Barboza <danielhb413 at gmail.com>
>---
> po/POTFILES.in                 |   1 +
> src/hypervisor/domain_cgroup.c | 101 +++++++++++++++++++++++++++++++++
> src/hypervisor/domain_cgroup.h |   4 ++
> src/libvirt_private.syms       |   1 +
> src/lxc/lxc_driver.c           |  87 +---------------------------
> src/qemu/qemu_driver.c         |  88 +---------------------------
> 6 files changed, 113 insertions(+), 169 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200223/89c933e0/attachment-0001.sig>


More information about the libvir-list mailing list