mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
a1150245cc
Movified from686be57d0a
, and re-ran gofmt again to address for files not present in 20.10 and vice-versa. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit686be57d0a
) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
25 lines
633 B
Go
25 lines
633 B
Go
//go:build linux
|
|
// +build linux
|
|
|
|
package loopback // import "github.com/docker/docker/pkg/loopback"
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
// IOCTL consts
|
|
const (
|
|
LoopSetFd = unix.LOOP_SET_FD
|
|
LoopCtlGetFree = unix.LOOP_CTL_GET_FREE
|
|
LoopGetStatus64 = unix.LOOP_GET_STATUS64
|
|
LoopSetStatus64 = unix.LOOP_SET_STATUS64
|
|
LoopClrFd = unix.LOOP_CLR_FD
|
|
LoopSetCapacity = unix.LOOP_SET_CAPACITY
|
|
)
|
|
|
|
// LOOP consts.
|
|
const (
|
|
LoFlagsAutoClear = unix.LO_FLAGS_AUTOCLEAR
|
|
LoFlagsReadOnly = unix.LO_FLAGS_READ_ONLY
|
|
LoFlagsPartScan = unix.LO_FLAGS_PARTSCAN
|
|
LoKeySize = unix.LO_KEY_SIZE
|
|
LoNameSize = unix.LO_NAME_SIZE
|
|
)
|