2021-08-23 09:14:53 -04:00
|
|
|
//go:build linux
|
2019-08-09 09:38:32 -04:00
|
|
|
// +build linux
|
2015-12-14 17:16:34 -05:00
|
|
|
|
2018-02-05 16:05:59 -05:00
|
|
|
package loopback // import "github.com/docker/docker/pkg/loopback"
|
2015-12-14 17:16:34 -05:00
|
|
|
|
2019-08-09 09:38:32 -04:00
|
|
|
import "golang.org/x/sys/unix"
|
2015-12-14 17:16:34 -05:00
|
|
|
|
|
|
|
// IOCTL consts
|
|
|
|
const (
|
2019-08-09 09:38:32 -04:00
|
|
|
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
|
2015-12-14 17:16:34 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
// LOOP consts.
|
|
|
|
const (
|
2019-08-09 09:38:32 -04:00
|
|
|
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
|
2015-12-14 17:16:34 -05:00
|
|
|
)
|