]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
api: Add support for domain invalid cgroups
authorTom Hromatka <tom.hromatka@oracle.com>
Mon, 10 Apr 2023 22:01:23 +0000 (22:01 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 20 Apr 2023 20:17:30 +0000 (14:17 -0600)
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
(cherry picked from commit 0c84f23e9d831d8ca4a15a395c17989f599b4861)

src/api.c

index 717678bfabbfac1b2b8b772f6abfb8c29b4fbfda..941b0755ff5f7070567d396f43c55cc01fb3edaf 100644 (file)
--- a/src/api.c
+++ b/src/api.c
@@ -1865,7 +1865,8 @@ static int cgroup_get_cg_type(const char * const path, char * const type,
         * an invalid state, under the threaded subtree.
         */
        if (strncmp(cg_type, "domain", len) == 0 ||
-           strncmp(cg_type, "domain threaded", len) == 0) {
+           strncmp(cg_type, "domain threaded", len) == 0 ||
+           strncmp(cg_type, "domain invalid", len) == 0) {
                snprintf(type, type_sz, "cgroup.procs");
        } else if (strncmp(cg_type, "threaded", len) == 0) {
                snprintf(type, type_sz, "cgroup.threads");