github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/pkg/loopback/loop_wrapper.go (about)

     1  // +build linux
     2  
     3  package loopback // import "github.com/demonoid81/moby/pkg/loopback"
     4  
     5  import "golang.org/x/sys/unix"
     6  
     7  // IOCTL consts
     8  const (
     9  	LoopSetFd       = unix.LOOP_SET_FD
    10  	LoopCtlGetFree  = unix.LOOP_CTL_GET_FREE
    11  	LoopGetStatus64 = unix.LOOP_GET_STATUS64
    12  	LoopSetStatus64 = unix.LOOP_SET_STATUS64
    13  	LoopClrFd       = unix.LOOP_CLR_FD
    14  	LoopSetCapacity = unix.LOOP_SET_CAPACITY
    15  )
    16  
    17  // LOOP consts.
    18  const (
    19  	LoFlagsAutoClear = unix.LO_FLAGS_AUTOCLEAR
    20  	LoFlagsReadOnly  = unix.LO_FLAGS_READ_ONLY
    21  	LoFlagsPartScan  = unix.LO_FLAGS_PARTSCAN
    22  	LoKeySize        = unix.LO_KEY_SIZE
    23  	LoNameSize       = unix.LO_NAME_SIZE
    24  )