Explain how to determine hierarchy type from shell

This makes it easier for people than just recommending the syscall.
This commit is contained in:
Florian Mayer 2020-07-10 18:40:36 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 76fb53c94a
commit ed1de7108e
1 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,8 @@ If you wonder how to detect which of these three modes is currently used, use
you are either in legacy or hybrid mode. To distinguish these two cases, run you are either in legacy or hybrid mode. To distinguish these two cases, run
`statfs()` again on `/sys/fs/cgroup/unified/`. If that succeeds and reports `statfs()` again on `/sys/fs/cgroup/unified/`. If that succeeds and reports
`CGROUP2_SUPER_MAGIC` you are in hybrid mode, otherwise not. `CGROUP2_SUPER_MAGIC` you are in hybrid mode, otherwise not.
From a shell, you can use check the `Type` in `stat -f /sys/fs/cgroup` and
`stat -f /sys/fs/cgroup/unified`.
## systemd's Unit Types ## systemd's Unit Types