mirror of
https://github.com/containers/podman.git
synced 2025-05-18 15:47:51 +08:00

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>
11 lines
267 B
Go
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")
|
|
}
|