mirror of
https://github.com/golang/sys.git
synced 2026-02-08 03:36:03 +03:00
unix: add constants and types to work with Linux loop devices
Change-Id: I0996df39a561b50822a6e42e770d96421d6b4965 Reviewed-on: https://go-review.googlesource.com/c/sys/+/185498 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
committed by
Tobias Klauser
parent
6ec70d6a55
commit
fae7ac547c
@@ -55,6 +55,7 @@ package unix
|
||||
#include <linux/icmpv6.h>
|
||||
#include <linux/if_pppox.h>
|
||||
#include <linux/keyctl.h>
|
||||
#include <linux/loop.h>
|
||||
#include <linux/netfilter/nf_tables.h>
|
||||
#include <linux/netfilter/nfnetlink.h>
|
||||
#include <linux/netfilter.h>
|
||||
@@ -2004,3 +2005,15 @@ const (
|
||||
LINUX_CAPABILITY_VERSION_2 = C._LINUX_CAPABILITY_VERSION_2
|
||||
LINUX_CAPABILITY_VERSION_3 = C._LINUX_CAPABILITY_VERSION_3
|
||||
)
|
||||
|
||||
// Loop devices
|
||||
|
||||
const (
|
||||
LO_FLAGS_READ_ONLY = C.LO_FLAGS_READ_ONLY
|
||||
LO_FLAGS_AUTOCLEAR = C.LO_FLAGS_AUTOCLEAR
|
||||
LO_FLAGS_PARTSCAN = C.LO_FLAGS_PARTSCAN
|
||||
LO_FLAGS_DIRECT_IO = C.LO_FLAGS_DIRECT_IO
|
||||
)
|
||||
|
||||
type LoopInfo C.struct_loop_info
|
||||
type LoopInfo64 C.struct_loop_info64
|
||||
|
||||
@@ -199,6 +199,7 @@ struct ltchars {
|
||||
#include <linux/fs.h>
|
||||
#include <linux/kexec.h>
|
||||
#include <linux/keyctl.h>
|
||||
#include <linux/loop.h>
|
||||
#include <linux/magic.h>
|
||||
#include <linux/memfd.h>
|
||||
#include <linux/module.h>
|
||||
@@ -435,6 +436,8 @@ ccflags="$@"
|
||||
$2 ~ /^TC[IO](ON|OFF)$/ ||
|
||||
$2 ~ /^IN_/ ||
|
||||
$2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
|
||||
$2 ~ /^LO_(KEY|NAME)_SIZE$/ ||
|
||||
$2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ ||
|
||||
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|MCAST|EVFILT|NOTE|EV|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
|
||||
$2 ~ /^TP_STATUS_/ ||
|
||||
$2 ~ /^FALLOC_/ ||
|
||||
|
||||
@@ -1149,6 +1149,20 @@ const (
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
LOOP_CLR_FD = 0x4c01
|
||||
LOOP_CTL_ADD = 0x4c80
|
||||
LOOP_CTL_GET_FREE = 0x4c82
|
||||
LOOP_CTL_REMOVE = 0x4c81
|
||||
LOOP_GET_STATUS = 0x4c03
|
||||
LOOP_GET_STATUS64 = 0x4c05
|
||||
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||
LOOP_SET_CAPACITY = 0x4c07
|
||||
LOOP_SET_DIRECT_IO = 0x4c08
|
||||
LOOP_SET_FD = 0x4c00
|
||||
LOOP_SET_STATUS = 0x4c02
|
||||
LOOP_SET_STATUS64 = 0x4c04
|
||||
LO_KEY_SIZE = 0x20
|
||||
LO_NAME_SIZE = 0x40
|
||||
MADV_DODUMP = 0x11
|
||||
MADV_DOFORK = 0xb
|
||||
MADV_DONTDUMP = 0x10
|
||||
|
||||
@@ -1149,6 +1149,20 @@ const (
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
LOOP_CLR_FD = 0x4c01
|
||||
LOOP_CTL_ADD = 0x4c80
|
||||
LOOP_CTL_GET_FREE = 0x4c82
|
||||
LOOP_CTL_REMOVE = 0x4c81
|
||||
LOOP_GET_STATUS = 0x4c03
|
||||
LOOP_GET_STATUS64 = 0x4c05
|
||||
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||
LOOP_SET_CAPACITY = 0x4c07
|
||||
LOOP_SET_DIRECT_IO = 0x4c08
|
||||
LOOP_SET_FD = 0x4c00
|
||||
LOOP_SET_STATUS = 0x4c02
|
||||
LOOP_SET_STATUS64 = 0x4c04
|
||||
LO_KEY_SIZE = 0x20
|
||||
LO_NAME_SIZE = 0x40
|
||||
MADV_DODUMP = 0x11
|
||||
MADV_DOFORK = 0xb
|
||||
MADV_DONTDUMP = 0x10
|
||||
|
||||
@@ -1148,6 +1148,20 @@ const (
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
LOOP_CLR_FD = 0x4c01
|
||||
LOOP_CTL_ADD = 0x4c80
|
||||
LOOP_CTL_GET_FREE = 0x4c82
|
||||
LOOP_CTL_REMOVE = 0x4c81
|
||||
LOOP_GET_STATUS = 0x4c03
|
||||
LOOP_GET_STATUS64 = 0x4c05
|
||||
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||
LOOP_SET_CAPACITY = 0x4c07
|
||||
LOOP_SET_DIRECT_IO = 0x4c08
|
||||
LOOP_SET_FD = 0x4c00
|
||||
LOOP_SET_STATUS = 0x4c02
|
||||
LOOP_SET_STATUS64 = 0x4c04
|
||||
LO_KEY_SIZE = 0x20
|
||||
LO_NAME_SIZE = 0x40
|
||||
MADV_DODUMP = 0x11
|
||||
MADV_DOFORK = 0xb
|
||||
MADV_DONTDUMP = 0x10
|
||||
|
||||
@@ -1151,6 +1151,20 @@ const (
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
LOOP_CLR_FD = 0x4c01
|
||||
LOOP_CTL_ADD = 0x4c80
|
||||
LOOP_CTL_GET_FREE = 0x4c82
|
||||
LOOP_CTL_REMOVE = 0x4c81
|
||||
LOOP_GET_STATUS = 0x4c03
|
||||
LOOP_GET_STATUS64 = 0x4c05
|
||||
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||
LOOP_SET_CAPACITY = 0x4c07
|
||||
LOOP_SET_DIRECT_IO = 0x4c08
|
||||
LOOP_SET_FD = 0x4c00
|
||||
LOOP_SET_STATUS = 0x4c02
|
||||
LOOP_SET_STATUS64 = 0x4c04
|
||||
LO_KEY_SIZE = 0x20
|
||||
LO_NAME_SIZE = 0x40
|
||||
MADV_DODUMP = 0x11
|
||||
MADV_DOFORK = 0xb
|
||||
MADV_DONTDUMP = 0x10
|
||||
|
||||
@@ -1148,6 +1148,20 @@ const (
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
LOOP_CLR_FD = 0x4c01
|
||||
LOOP_CTL_ADD = 0x4c80
|
||||
LOOP_CTL_GET_FREE = 0x4c82
|
||||
LOOP_CTL_REMOVE = 0x4c81
|
||||
LOOP_GET_STATUS = 0x4c03
|
||||
LOOP_GET_STATUS64 = 0x4c05
|
||||
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||
LOOP_SET_CAPACITY = 0x4c07
|
||||
LOOP_SET_DIRECT_IO = 0x4c08
|
||||
LOOP_SET_FD = 0x4c00
|
||||
LOOP_SET_STATUS = 0x4c02
|
||||
LOOP_SET_STATUS64 = 0x4c04
|
||||
LO_KEY_SIZE = 0x20
|
||||
LO_NAME_SIZE = 0x40
|
||||
MADV_DODUMP = 0x11
|
||||
MADV_DOFORK = 0xb
|
||||
MADV_DONTDUMP = 0x10
|
||||
|
||||
@@ -1148,6 +1148,20 @@ const (
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
LOOP_CLR_FD = 0x4c01
|
||||
LOOP_CTL_ADD = 0x4c80
|
||||
LOOP_CTL_GET_FREE = 0x4c82
|
||||
LOOP_CTL_REMOVE = 0x4c81
|
||||
LOOP_GET_STATUS = 0x4c03
|
||||
LOOP_GET_STATUS64 = 0x4c05
|
||||
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||
LOOP_SET_CAPACITY = 0x4c07
|
||||
LOOP_SET_DIRECT_IO = 0x4c08
|
||||
LOOP_SET_FD = 0x4c00
|
||||
LOOP_SET_STATUS = 0x4c02
|
||||
LOOP_SET_STATUS64 = 0x4c04
|
||||
LO_KEY_SIZE = 0x20
|
||||
LO_NAME_SIZE = 0x40
|
||||
MADV_DODUMP = 0x11
|
||||
MADV_DOFORK = 0xb
|
||||
MADV_DONTDUMP = 0x10
|
||||
|
||||
@@ -1148,6 +1148,20 @@ const (
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
LOOP_CLR_FD = 0x4c01
|
||||
LOOP_CTL_ADD = 0x4c80
|
||||
LOOP_CTL_GET_FREE = 0x4c82
|
||||
LOOP_CTL_REMOVE = 0x4c81
|
||||
LOOP_GET_STATUS = 0x4c03
|
||||
LOOP_GET_STATUS64 = 0x4c05
|
||||
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||
LOOP_SET_CAPACITY = 0x4c07
|
||||
LOOP_SET_DIRECT_IO = 0x4c08
|
||||
LOOP_SET_FD = 0x4c00
|
||||
LOOP_SET_STATUS = 0x4c02
|
||||
LOOP_SET_STATUS64 = 0x4c04
|
||||
LO_KEY_SIZE = 0x20
|
||||
LO_NAME_SIZE = 0x40
|
||||
MADV_DODUMP = 0x11
|
||||
MADV_DOFORK = 0xb
|
||||
MADV_DONTDUMP = 0x10
|
||||
|
||||
@@ -1148,6 +1148,20 @@ const (
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
LOOP_CLR_FD = 0x4c01
|
||||
LOOP_CTL_ADD = 0x4c80
|
||||
LOOP_CTL_GET_FREE = 0x4c82
|
||||
LOOP_CTL_REMOVE = 0x4c81
|
||||
LOOP_GET_STATUS = 0x4c03
|
||||
LOOP_GET_STATUS64 = 0x4c05
|
||||
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||
LOOP_SET_CAPACITY = 0x4c07
|
||||
LOOP_SET_DIRECT_IO = 0x4c08
|
||||
LOOP_SET_FD = 0x4c00
|
||||
LOOP_SET_STATUS = 0x4c02
|
||||
LOOP_SET_STATUS64 = 0x4c04
|
||||
LO_KEY_SIZE = 0x20
|
||||
LO_NAME_SIZE = 0x40
|
||||
MADV_DODUMP = 0x11
|
||||
MADV_DOFORK = 0xb
|
||||
MADV_DONTDUMP = 0x10
|
||||
|
||||
@@ -1148,6 +1148,20 @@ const (
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
LOOP_CLR_FD = 0x4c01
|
||||
LOOP_CTL_ADD = 0x4c80
|
||||
LOOP_CTL_GET_FREE = 0x4c82
|
||||
LOOP_CTL_REMOVE = 0x4c81
|
||||
LOOP_GET_STATUS = 0x4c03
|
||||
LOOP_GET_STATUS64 = 0x4c05
|
||||
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||
LOOP_SET_CAPACITY = 0x4c07
|
||||
LOOP_SET_DIRECT_IO = 0x4c08
|
||||
LOOP_SET_FD = 0x4c00
|
||||
LOOP_SET_STATUS = 0x4c02
|
||||
LOOP_SET_STATUS64 = 0x4c04
|
||||
LO_KEY_SIZE = 0x20
|
||||
LO_NAME_SIZE = 0x40
|
||||
MADV_DODUMP = 0x11
|
||||
MADV_DOFORK = 0xb
|
||||
MADV_DONTDUMP = 0x10
|
||||
|
||||
@@ -1148,6 +1148,20 @@ const (
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
LOOP_CLR_FD = 0x4c01
|
||||
LOOP_CTL_ADD = 0x4c80
|
||||
LOOP_CTL_GET_FREE = 0x4c82
|
||||
LOOP_CTL_REMOVE = 0x4c81
|
||||
LOOP_GET_STATUS = 0x4c03
|
||||
LOOP_GET_STATUS64 = 0x4c05
|
||||
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||
LOOP_SET_CAPACITY = 0x4c07
|
||||
LOOP_SET_DIRECT_IO = 0x4c08
|
||||
LOOP_SET_FD = 0x4c00
|
||||
LOOP_SET_STATUS = 0x4c02
|
||||
LOOP_SET_STATUS64 = 0x4c04
|
||||
LO_KEY_SIZE = 0x20
|
||||
LO_NAME_SIZE = 0x40
|
||||
MADV_DODUMP = 0x11
|
||||
MADV_DOFORK = 0xb
|
||||
MADV_DONTDUMP = 0x10
|
||||
|
||||
@@ -1148,6 +1148,20 @@ const (
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
LOOP_CLR_FD = 0x4c01
|
||||
LOOP_CTL_ADD = 0x4c80
|
||||
LOOP_CTL_GET_FREE = 0x4c82
|
||||
LOOP_CTL_REMOVE = 0x4c81
|
||||
LOOP_GET_STATUS = 0x4c03
|
||||
LOOP_GET_STATUS64 = 0x4c05
|
||||
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||
LOOP_SET_CAPACITY = 0x4c07
|
||||
LOOP_SET_DIRECT_IO = 0x4c08
|
||||
LOOP_SET_FD = 0x4c00
|
||||
LOOP_SET_STATUS = 0x4c02
|
||||
LOOP_SET_STATUS64 = 0x4c04
|
||||
LO_KEY_SIZE = 0x20
|
||||
LO_NAME_SIZE = 0x40
|
||||
MADV_DODUMP = 0x11
|
||||
MADV_DOFORK = 0xb
|
||||
MADV_DONTDUMP = 0x10
|
||||
|
||||
@@ -1148,6 +1148,20 @@ const (
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
LOOP_CLR_FD = 0x4c01
|
||||
LOOP_CTL_ADD = 0x4c80
|
||||
LOOP_CTL_GET_FREE = 0x4c82
|
||||
LOOP_CTL_REMOVE = 0x4c81
|
||||
LOOP_GET_STATUS = 0x4c03
|
||||
LOOP_GET_STATUS64 = 0x4c05
|
||||
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||
LOOP_SET_CAPACITY = 0x4c07
|
||||
LOOP_SET_DIRECT_IO = 0x4c08
|
||||
LOOP_SET_FD = 0x4c00
|
||||
LOOP_SET_STATUS = 0x4c02
|
||||
LOOP_SET_STATUS64 = 0x4c04
|
||||
LO_KEY_SIZE = 0x20
|
||||
LO_NAME_SIZE = 0x40
|
||||
MADV_DODUMP = 0x11
|
||||
MADV_DOFORK = 0xb
|
||||
MADV_DONTDUMP = 0x10
|
||||
|
||||
@@ -1152,6 +1152,20 @@ const (
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
LOOP_CLR_FD = 0x4c01
|
||||
LOOP_CTL_ADD = 0x4c80
|
||||
LOOP_CTL_GET_FREE = 0x4c82
|
||||
LOOP_CTL_REMOVE = 0x4c81
|
||||
LOOP_GET_STATUS = 0x4c03
|
||||
LOOP_GET_STATUS64 = 0x4c05
|
||||
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||
LOOP_SET_CAPACITY = 0x4c07
|
||||
LOOP_SET_DIRECT_IO = 0x4c08
|
||||
LOOP_SET_FD = 0x4c00
|
||||
LOOP_SET_STATUS = 0x4c02
|
||||
LOOP_SET_STATUS64 = 0x4c04
|
||||
LO_KEY_SIZE = 0x20
|
||||
LO_NAME_SIZE = 0x40
|
||||
MADV_DODUMP = 0x11
|
||||
MADV_DOFORK = 0xb
|
||||
MADV_DONTDUMP = 0x10
|
||||
|
||||
@@ -2484,3 +2484,40 @@ const (
|
||||
LINUX_CAPABILITY_VERSION_2 = 0x20071026
|
||||
LINUX_CAPABILITY_VERSION_3 = 0x20080522
|
||||
)
|
||||
|
||||
const (
|
||||
LO_FLAGS_READ_ONLY = 0x1
|
||||
LO_FLAGS_AUTOCLEAR = 0x4
|
||||
LO_FLAGS_PARTSCAN = 0x8
|
||||
LO_FLAGS_DIRECT_IO = 0x10
|
||||
)
|
||||
|
||||
type LoopInfo struct {
|
||||
Number int32
|
||||
Device uint16
|
||||
Inode uint32
|
||||
Rdevice uint16
|
||||
Offset int32
|
||||
Encrypt_type int32
|
||||
Encrypt_key_size int32
|
||||
Flags int32
|
||||
Name [64]int8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint32
|
||||
Reserved [4]int8
|
||||
}
|
||||
type LoopInfo64 struct {
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset uint64
|
||||
Sizelimit uint64
|
||||
Number uint32
|
||||
Encrypt_type uint32
|
||||
Encrypt_key_size uint32
|
||||
Flags uint32
|
||||
File_name [64]uint8
|
||||
Crypt_name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
}
|
||||
|
||||
@@ -2497,3 +2497,41 @@ const (
|
||||
LINUX_CAPABILITY_VERSION_2 = 0x20071026
|
||||
LINUX_CAPABILITY_VERSION_3 = 0x20080522
|
||||
)
|
||||
|
||||
const (
|
||||
LO_FLAGS_READ_ONLY = 0x1
|
||||
LO_FLAGS_AUTOCLEAR = 0x4
|
||||
LO_FLAGS_PARTSCAN = 0x8
|
||||
LO_FLAGS_DIRECT_IO = 0x10
|
||||
)
|
||||
|
||||
type LoopInfo struct {
|
||||
Number int32
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset int32
|
||||
Encrypt_type int32
|
||||
Encrypt_key_size int32
|
||||
Flags int32
|
||||
Name [64]int8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
Reserved [4]int8
|
||||
_ [4]byte
|
||||
}
|
||||
type LoopInfo64 struct {
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset uint64
|
||||
Sizelimit uint64
|
||||
Number uint32
|
||||
Encrypt_type uint32
|
||||
Encrypt_key_size uint32
|
||||
Flags uint32
|
||||
File_name [64]uint8
|
||||
Crypt_name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
}
|
||||
|
||||
@@ -2475,3 +2475,40 @@ const (
|
||||
LINUX_CAPABILITY_VERSION_2 = 0x20071026
|
||||
LINUX_CAPABILITY_VERSION_3 = 0x20080522
|
||||
)
|
||||
|
||||
const (
|
||||
LO_FLAGS_READ_ONLY = 0x1
|
||||
LO_FLAGS_AUTOCLEAR = 0x4
|
||||
LO_FLAGS_PARTSCAN = 0x8
|
||||
LO_FLAGS_DIRECT_IO = 0x10
|
||||
)
|
||||
|
||||
type LoopInfo struct {
|
||||
Number int32
|
||||
Device uint16
|
||||
Inode uint32
|
||||
Rdevice uint16
|
||||
Offset int32
|
||||
Encrypt_type int32
|
||||
Encrypt_key_size int32
|
||||
Flags int32
|
||||
Name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint32
|
||||
Reserved [4]uint8
|
||||
}
|
||||
type LoopInfo64 struct {
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset uint64
|
||||
Sizelimit uint64
|
||||
Number uint32
|
||||
Encrypt_type uint32
|
||||
Encrypt_key_size uint32
|
||||
Flags uint32
|
||||
File_name [64]uint8
|
||||
Crypt_name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
}
|
||||
|
||||
@@ -2476,3 +2476,41 @@ const (
|
||||
LINUX_CAPABILITY_VERSION_2 = 0x20071026
|
||||
LINUX_CAPABILITY_VERSION_3 = 0x20080522
|
||||
)
|
||||
|
||||
const (
|
||||
LO_FLAGS_READ_ONLY = 0x1
|
||||
LO_FLAGS_AUTOCLEAR = 0x4
|
||||
LO_FLAGS_PARTSCAN = 0x8
|
||||
LO_FLAGS_DIRECT_IO = 0x10
|
||||
)
|
||||
|
||||
type LoopInfo struct {
|
||||
Number int32
|
||||
Device uint32
|
||||
Inode uint64
|
||||
Rdevice uint32
|
||||
Offset int32
|
||||
Encrypt_type int32
|
||||
Encrypt_key_size int32
|
||||
Flags int32
|
||||
Name [64]int8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
Reserved [4]int8
|
||||
_ [4]byte
|
||||
}
|
||||
type LoopInfo64 struct {
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset uint64
|
||||
Sizelimit uint64
|
||||
Number uint32
|
||||
Encrypt_type uint32
|
||||
Encrypt_key_size uint32
|
||||
Flags uint32
|
||||
File_name [64]uint8
|
||||
Crypt_name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
}
|
||||
|
||||
@@ -2481,3 +2481,40 @@ const (
|
||||
LINUX_CAPABILITY_VERSION_2 = 0x20071026
|
||||
LINUX_CAPABILITY_VERSION_3 = 0x20080522
|
||||
)
|
||||
|
||||
const (
|
||||
LO_FLAGS_READ_ONLY = 0x1
|
||||
LO_FLAGS_AUTOCLEAR = 0x4
|
||||
LO_FLAGS_PARTSCAN = 0x8
|
||||
LO_FLAGS_DIRECT_IO = 0x10
|
||||
)
|
||||
|
||||
type LoopInfo struct {
|
||||
Number int32
|
||||
Device uint32
|
||||
Inode uint32
|
||||
Rdevice uint32
|
||||
Offset int32
|
||||
Encrypt_type int32
|
||||
Encrypt_key_size int32
|
||||
Flags int32
|
||||
Name [64]int8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint32
|
||||
Reserved [4]int8
|
||||
}
|
||||
type LoopInfo64 struct {
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset uint64
|
||||
Sizelimit uint64
|
||||
Number uint32
|
||||
Encrypt_type uint32
|
||||
Encrypt_key_size uint32
|
||||
Flags uint32
|
||||
File_name [64]uint8
|
||||
Crypt_name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
}
|
||||
|
||||
@@ -2478,3 +2478,41 @@ const (
|
||||
LINUX_CAPABILITY_VERSION_2 = 0x20071026
|
||||
LINUX_CAPABILITY_VERSION_3 = 0x20080522
|
||||
)
|
||||
|
||||
const (
|
||||
LO_FLAGS_READ_ONLY = 0x1
|
||||
LO_FLAGS_AUTOCLEAR = 0x4
|
||||
LO_FLAGS_PARTSCAN = 0x8
|
||||
LO_FLAGS_DIRECT_IO = 0x10
|
||||
)
|
||||
|
||||
type LoopInfo struct {
|
||||
Number int32
|
||||
Device uint32
|
||||
Inode uint64
|
||||
Rdevice uint32
|
||||
Offset int32
|
||||
Encrypt_type int32
|
||||
Encrypt_key_size int32
|
||||
Flags int32
|
||||
Name [64]int8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
Reserved [4]int8
|
||||
_ [4]byte
|
||||
}
|
||||
type LoopInfo64 struct {
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset uint64
|
||||
Sizelimit uint64
|
||||
Number uint32
|
||||
Encrypt_type uint32
|
||||
Encrypt_key_size uint32
|
||||
Flags uint32
|
||||
File_name [64]uint8
|
||||
Crypt_name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
}
|
||||
|
||||
@@ -2478,3 +2478,41 @@ const (
|
||||
LINUX_CAPABILITY_VERSION_2 = 0x20071026
|
||||
LINUX_CAPABILITY_VERSION_3 = 0x20080522
|
||||
)
|
||||
|
||||
const (
|
||||
LO_FLAGS_READ_ONLY = 0x1
|
||||
LO_FLAGS_AUTOCLEAR = 0x4
|
||||
LO_FLAGS_PARTSCAN = 0x8
|
||||
LO_FLAGS_DIRECT_IO = 0x10
|
||||
)
|
||||
|
||||
type LoopInfo struct {
|
||||
Number int32
|
||||
Device uint32
|
||||
Inode uint64
|
||||
Rdevice uint32
|
||||
Offset int32
|
||||
Encrypt_type int32
|
||||
Encrypt_key_size int32
|
||||
Flags int32
|
||||
Name [64]int8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
Reserved [4]int8
|
||||
_ [4]byte
|
||||
}
|
||||
type LoopInfo64 struct {
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset uint64
|
||||
Sizelimit uint64
|
||||
Number uint32
|
||||
Encrypt_type uint32
|
||||
Encrypt_key_size uint32
|
||||
Flags uint32
|
||||
File_name [64]uint8
|
||||
Crypt_name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
}
|
||||
|
||||
@@ -2481,3 +2481,40 @@ const (
|
||||
LINUX_CAPABILITY_VERSION_2 = 0x20071026
|
||||
LINUX_CAPABILITY_VERSION_3 = 0x20080522
|
||||
)
|
||||
|
||||
const (
|
||||
LO_FLAGS_READ_ONLY = 0x1
|
||||
LO_FLAGS_AUTOCLEAR = 0x4
|
||||
LO_FLAGS_PARTSCAN = 0x8
|
||||
LO_FLAGS_DIRECT_IO = 0x10
|
||||
)
|
||||
|
||||
type LoopInfo struct {
|
||||
Number int32
|
||||
Device uint32
|
||||
Inode uint32
|
||||
Rdevice uint32
|
||||
Offset int32
|
||||
Encrypt_type int32
|
||||
Encrypt_key_size int32
|
||||
Flags int32
|
||||
Name [64]int8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint32
|
||||
Reserved [4]int8
|
||||
}
|
||||
type LoopInfo64 struct {
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset uint64
|
||||
Sizelimit uint64
|
||||
Number uint32
|
||||
Encrypt_type uint32
|
||||
Encrypt_key_size uint32
|
||||
Flags uint32
|
||||
File_name [64]uint8
|
||||
Crypt_name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
}
|
||||
|
||||
@@ -2486,3 +2486,41 @@ const (
|
||||
LINUX_CAPABILITY_VERSION_2 = 0x20071026
|
||||
LINUX_CAPABILITY_VERSION_3 = 0x20080522
|
||||
)
|
||||
|
||||
const (
|
||||
LO_FLAGS_READ_ONLY = 0x1
|
||||
LO_FLAGS_AUTOCLEAR = 0x4
|
||||
LO_FLAGS_PARTSCAN = 0x8
|
||||
LO_FLAGS_DIRECT_IO = 0x10
|
||||
)
|
||||
|
||||
type LoopInfo struct {
|
||||
Number int32
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset int32
|
||||
Encrypt_type int32
|
||||
Encrypt_key_size int32
|
||||
Flags int32
|
||||
Name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
Reserved [4]uint8
|
||||
_ [4]byte
|
||||
}
|
||||
type LoopInfo64 struct {
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset uint64
|
||||
Sizelimit uint64
|
||||
Number uint32
|
||||
Encrypt_type uint32
|
||||
Encrypt_key_size uint32
|
||||
Flags uint32
|
||||
File_name [64]uint8
|
||||
Crypt_name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
}
|
||||
|
||||
@@ -2486,3 +2486,41 @@ const (
|
||||
LINUX_CAPABILITY_VERSION_2 = 0x20071026
|
||||
LINUX_CAPABILITY_VERSION_3 = 0x20080522
|
||||
)
|
||||
|
||||
const (
|
||||
LO_FLAGS_READ_ONLY = 0x1
|
||||
LO_FLAGS_AUTOCLEAR = 0x4
|
||||
LO_FLAGS_PARTSCAN = 0x8
|
||||
LO_FLAGS_DIRECT_IO = 0x10
|
||||
)
|
||||
|
||||
type LoopInfo struct {
|
||||
Number int32
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset int32
|
||||
Encrypt_type int32
|
||||
Encrypt_key_size int32
|
||||
Flags int32
|
||||
Name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
Reserved [4]uint8
|
||||
_ [4]byte
|
||||
}
|
||||
type LoopInfo64 struct {
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset uint64
|
||||
Sizelimit uint64
|
||||
Number uint32
|
||||
Encrypt_type uint32
|
||||
Encrypt_key_size uint32
|
||||
Flags uint32
|
||||
File_name [64]uint8
|
||||
Crypt_name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
}
|
||||
|
||||
@@ -2503,3 +2503,41 @@ const (
|
||||
LINUX_CAPABILITY_VERSION_2 = 0x20071026
|
||||
LINUX_CAPABILITY_VERSION_3 = 0x20080522
|
||||
)
|
||||
|
||||
const (
|
||||
LO_FLAGS_READ_ONLY = 0x1
|
||||
LO_FLAGS_AUTOCLEAR = 0x4
|
||||
LO_FLAGS_PARTSCAN = 0x8
|
||||
LO_FLAGS_DIRECT_IO = 0x10
|
||||
)
|
||||
|
||||
type LoopInfo struct {
|
||||
Number int32
|
||||
Device uint32
|
||||
Inode uint64
|
||||
Rdevice uint32
|
||||
Offset int32
|
||||
Encrypt_type int32
|
||||
Encrypt_key_size int32
|
||||
Flags int32
|
||||
Name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
Reserved [4]uint8
|
||||
_ [4]byte
|
||||
}
|
||||
type LoopInfo64 struct {
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset uint64
|
||||
Sizelimit uint64
|
||||
Number uint32
|
||||
Encrypt_type uint32
|
||||
Encrypt_key_size uint32
|
||||
Flags uint32
|
||||
File_name [64]uint8
|
||||
Crypt_name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
}
|
||||
|
||||
@@ -2500,3 +2500,41 @@ const (
|
||||
LINUX_CAPABILITY_VERSION_2 = 0x20071026
|
||||
LINUX_CAPABILITY_VERSION_3 = 0x20080522
|
||||
)
|
||||
|
||||
const (
|
||||
LO_FLAGS_READ_ONLY = 0x1
|
||||
LO_FLAGS_AUTOCLEAR = 0x4
|
||||
LO_FLAGS_PARTSCAN = 0x8
|
||||
LO_FLAGS_DIRECT_IO = 0x10
|
||||
)
|
||||
|
||||
type LoopInfo struct {
|
||||
Number int32
|
||||
Device uint16
|
||||
Inode uint64
|
||||
Rdevice uint16
|
||||
Offset int32
|
||||
Encrypt_type int32
|
||||
Encrypt_key_size int32
|
||||
Flags int32
|
||||
Name [64]int8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
Reserved [4]int8
|
||||
_ [4]byte
|
||||
}
|
||||
type LoopInfo64 struct {
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset uint64
|
||||
Sizelimit uint64
|
||||
Number uint32
|
||||
Encrypt_type uint32
|
||||
Encrypt_key_size uint32
|
||||
Flags uint32
|
||||
File_name [64]uint8
|
||||
Crypt_name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
}
|
||||
|
||||
@@ -2481,3 +2481,41 @@ const (
|
||||
LINUX_CAPABILITY_VERSION_2 = 0x20071026
|
||||
LINUX_CAPABILITY_VERSION_3 = 0x20080522
|
||||
)
|
||||
|
||||
const (
|
||||
LO_FLAGS_READ_ONLY = 0x1
|
||||
LO_FLAGS_AUTOCLEAR = 0x4
|
||||
LO_FLAGS_PARTSCAN = 0x8
|
||||
LO_FLAGS_DIRECT_IO = 0x10
|
||||
)
|
||||
|
||||
type LoopInfo struct {
|
||||
Number int32
|
||||
Device uint32
|
||||
Inode uint64
|
||||
Rdevice uint32
|
||||
Offset int32
|
||||
Encrypt_type int32
|
||||
Encrypt_key_size int32
|
||||
Flags int32
|
||||
Name [64]int8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
Reserved [4]int8
|
||||
_ [4]byte
|
||||
}
|
||||
type LoopInfo64 struct {
|
||||
Device uint64
|
||||
Inode uint64
|
||||
Rdevice uint64
|
||||
Offset uint64
|
||||
Sizelimit uint64
|
||||
Number uint32
|
||||
Encrypt_type uint32
|
||||
Encrypt_key_size uint32
|
||||
Flags uint32
|
||||
File_name [64]uint8
|
||||
Crypt_name [64]uint8
|
||||
Encrypt_key [32]uint8
|
||||
Init [2]uint64
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user