Files
podman/pkg/util/utils_unsupported.go
Giuseppe Scrivano f6b91d7be0 inspect: Ignore character devices for IO limits
Cgroup block I/O limits cannot be applied to character devices.

Ignore character devices in the inspect output.

Update the API tests to use the null block device `/dev/nullb0` (if
available) instead of `/dev/zero` for testing I/O limits.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-04-30 16:21:38 +02:00

11 lines
267 B
Go

//go:build darwin || windows || freebsd
package util
import "errors"
// FindDeviceNodes is not implemented anywhere except Linux.
func FindDeviceNodes(onlyBlockDevices bool) (map[string]string, error) {
return nil, errors.New("not supported on non-Linux OSes")
}