mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
virt-host-validate: check for required cgroups
Extend the virt-host-validate checks to see if the required cgroups are compiled into the kernel and that they are mounted on the system. The cgroups are all optional except for 3 that LXC mandates Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
1 parent
fd6d506c50
commit
9bf595b172
4 files changed
+189
-10
No files matched your search
@@ -40,7 +40,8 @@ extern void virHostMsgCheck(const char *prefix,
|
||||
|
||||
extern void virHostMsgPass(void);
|
||||
extern void virHostMsgFail(virHostValidateLevel level,
|
||||
const char *hint);
|
||||
const char *format,
|
||||
...) ATTRIBUTE_FMT_PRINTF(2, 3);
|
||||
|
||||
extern int virHostValidateDeviceExists(const char *hvname,
|
||||
const char *dev_name,
|
||||
@@ -64,4 +65,9 @@ extern int virHostValidateNamespace(const char *hvname,
|
||||
virHostValidateLevel level,
|
||||
const char *hint);
|
||||
|
||||
extern int virHostValidateCGroupController(const char *hvname,
|
||||
const char *cg_name,
|
||||
virHostValidateLevel level,
|
||||
const char *config_name);
|
||||
|
||||
#endif /* __VIRT_HOST_VALIDATE_COMMON_H__ */
|
||||
Reference in new issue
Block a user