mirror of
https://github.com/containers/podman.git
synced 2025-09-25 15:55:32 +08:00

Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.25.0 to 1.28.0. - [Release notes](https://github.com/containers/storage/releases) - [Changelog](https://github.com/containers/storage/blob/master/docs/containers-storage-changes.md) - [Commits](https://github.com/containers/storage/compare/v1.25.0...v1.28.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
17 lines
301 B
Go
17 lines
301 B
Go
// +build !windows
|
|
|
|
package devices
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func (d *Rule) Mkdev() (uint64, error) {
|
|
if d.Major == Wildcard || d.Minor == Wildcard {
|
|
return 0, errors.New("cannot mkdev() device with wildcards")
|
|
}
|
|
return unix.Mkdev(uint32(d.Major), uint32(d.Minor)), nil
|
|
}
|