//go:build linux // +build linux package devicemapper import ( "fmt" "os" "path" "syscall" "time" "unsafe" "golang.org/x/sys/unix" "github.com/Microsoft/hcsshim/internal/guest/linux" ) // CreateFlags modify the operation of CreateDevice type CreateFlags int const ( // CreateReadOnly specifies that the device is not writable CreateReadOnly CreateFlags = 1 << iota ) var ( removeDeviceWrapper = removeDevice openMapperWrapper = openMapper ) //nolint:stylecheck // ST1003: ALL_CAPS const ( _DM_IOCTL = 0xfd _DM_IOCTL_SIZE = 312 _DM_IOCTL_BASE = linux.IocWRBase | _DM_IOCTL<