Re: [PATCH v2 01/14] vircgroup.c: adding virCgroupSetupBlkioDevice* helpers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



s/adding/add/

On Mon, Feb 17, 2020 at 04:29:08PM -0500, Daniel Henrique Barboza wrote:
The current use of the functions that sets and gets

*set, *get

BlkioDevice attributes is doing a set(), following by
a get() of the same parameter right after. This is done
because there is no guarantee that the kernel will accept
the desired value given by the set() call, thus we need to
execute a get() right after to get the actual value.

This patch adds helpers inside vircgroup.c to execute these
operations. Next patch will use these helpers to reduce
code repetition in LXC and QEMU files.

Signed-off-by: Daniel Henrique Barboza <danielhb413@xxxxxxxxx>
---
src/libvirt_private.syms |  5 +++
src/util/vircgroup.c     | 85 ++++++++++++++++++++++++++++++++++++++++
src/util/vircgroup.h     | 20 ++++++++++
3 files changed, 110 insertions(+)


Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux