]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: cgroup: Add helper to convert device mode to string
authorPeter Krempa <pkrempa@redhat.com>
Fri, 20 Jun 2014 11:33:16 +0000 (13:33 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 8 Jul 2014 12:34:05 +0000 (14:34 +0200)
commita48f44510098cead629ede9a49ea4e840a28ccca
tree44c1c7536504c15488933b9bc38f0af6a9c85d93
parent6f87fb9b6f51c2e2b1ac254648e9d0836be68868
util: cgroup: Add helper to convert device mode to string

Cgroups code uses VIR_CGROUP_DEVICE_* flags to specify the mode but in
the end it needs to be converted to a string. Add a helper to do it and
use it in the cgroup code before introducing it into the rest of the
code.
src/libvirt_private.syms
src/util/vircgroup.c
src/util/vircgroup.h