]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
tools/lssubsys: add support status for the tool
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 16 May 2022 15:21:43 +0000 (09:21 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 16 May 2022 15:21:49 +0000 (09:21 -0600)
lssubsys currently doesn't support the cgroups v2 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 cf1a7751407f8218f41f99f64635242a65a6d36c)

src/tools/lssubsys.c

index bf73b9d2d8897fb718ae1a78c418d766366332d0..baa65db81e844f786b4d4c027b15d752ac60f931 100644 (file)
@@ -48,6 +48,7 @@ static void usage(int status, const char *program_name)
                "hierarchies\n");
        printf("  -m, --mount-points            Display mount points\n");
        printf("  -M, --all-mount-points        Display all mount points\n");
+       printf("(Note: currently supported on cgroups v1 only)\n");
 }
 
 static int print_controller_mount(const char *controller,