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(a)gmail.com>
---
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(a)redhat.com>
Jano