mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 10:12:24 +00:00
cgroups: add monitor_full_path member
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
d39e9d8b04
commit
e09b62f943
@ -820,6 +820,7 @@ static struct hierarchy *add_hierarchy(struct hierarchy ***h, char **clist, char
|
||||
new->mountpoint = mountpoint;
|
||||
new->container_base_path = container_base_path;
|
||||
new->container_full_path = NULL;
|
||||
new->monitor_full_path = NULL;
|
||||
new->version = type;
|
||||
|
||||
newentry = append_null_to_list((void ***)h);
|
||||
|
@ -88,6 +88,7 @@ void cgroup_exit(struct cgroup_ops *ops)
|
||||
free((*it)->mountpoint);
|
||||
free((*it)->container_base_path);
|
||||
free((*it)->container_full_path);
|
||||
free((*it)->monitor_full_path);
|
||||
free(*it);
|
||||
}
|
||||
free(ops->hierarchies);
|
||||
|
@ -65,6 +65,9 @@ typedef enum {
|
||||
* @container_full_path
|
||||
* - The full path to the containers cgroup.
|
||||
*
|
||||
* @monitor_full_path
|
||||
* - The full path to the monitor's cgroup.
|
||||
*
|
||||
* @version
|
||||
* - legacy hierarchy
|
||||
* If the hierarchy is a legacy hierarchy this will be set to
|
||||
@ -78,6 +81,7 @@ struct hierarchy {
|
||||
char *mountpoint;
|
||||
char *container_base_path;
|
||||
char *container_full_path;
|
||||
char *monitor_full_path;
|
||||
int version;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user