libct/cgroups/utils: getControllerPath return err for v2
This function is not used and were never used in any cgroupv2 code.
To have it stay that way, let it return error in case it's called
for v2.
@@ -418,7 +418,7 @@ func parseCgroupFromReader(r io.Reader) (map[string]string, error) {
func getControllerPath(subsystem string, cgroups map[string]string) (string, error) {
if IsCgroup2UnifiedMode() {
- return "/", nil
+ return "", errUnified
}
if p, ok := cgroups[subsystem]; ok {
