]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: add monitor_full_path member
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 10 Sep 2018 13:51:38 +0000 (15:51 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 21 Sep 2018 14:47:04 +0000 (16:47 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c
src/lxc/cgroups/cgroup.c
src/lxc/cgroups/cgroup.h

index 17d0740d124f67eab37894e04a7e37321539b0a9..1246c8f98e90b2e177859bd51f86dd49c5597440 100644 (file)
@@ -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);
index de602d04ee623f53a00fa6d79040af648e2fc4e3..cf81f3edbf85cfb2082a29429cb601973f7560bd 100644 (file)
@@ -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);
index d7950836281165f8d67a4005f8a454b1dccfa892..d3f834c4cd7c3fa87545b5ebb317daf0755b0b4f 100644 (file)
@@ -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;
 };