]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
tools/lscgroup: add support status for the tool
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 16 May 2022 15:22:52 +0000 (09:22 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 16 May 2022 15:22:59 +0000 (09:22 -0600)
lscgroup currently doesn't support the cgroupv2 filesystem.  Add the
warning about the support status in the help.

Fixes: https://github.com/libcgroup/libcgroup/issues/50
Suggested-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit 5e3715fe1da3f29a52147512d5447a778c0a98a8)

src/tools/lscgroup.c

index 31d5c2e619577c234343456daf2a90b2d1bcc5c2..866064eacb30f4ef5c2aa28419fb5bcf92c3f27a 100644 (file)
@@ -52,6 +52,7 @@ static void usage(int status, const char *program_name)
        printf("  -g <controllers>:<path>       Control group to be displayed "\
                "(-g is optional)\n");
        printf("  -h, --help                    Display this help\n");
+       printf("(Note: currently supported on cgroups v1 only)\n");
 }
 
 /*