summaryrefslogtreecommitdiff
path: root/pkg/btrfs/btrfsitem/items_gen.go
blob: e60c50e370b2992f86398545dfbf4ae2ccebc67a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// Code generated by Make.  DO NOT EDIT.

package btrfsitem

import (
	"reflect"

	"lukeshu.com/btrfs-tools/pkg/btrfs/internal"
)

const (
	BLOCK_GROUP_ITEM_KEY     = internal.BLOCK_GROUP_ITEM_KEY
	CHUNK_ITEM_KEY           = internal.CHUNK_ITEM_KEY
	DEV_EXTENT_KEY           = internal.DEV_EXTENT_KEY
	DEV_ITEM_KEY             = internal.DEV_ITEM_KEY
	DIR_INDEX_KEY            = internal.DIR_INDEX_KEY
	DIR_ITEM_KEY             = internal.DIR_ITEM_KEY
	EXTENT_DATA_KEY          = internal.EXTENT_DATA_KEY
	EXTENT_DATA_REF_KEY      = internal.EXTENT_DATA_REF_KEY
	EXTENT_ITEM_KEY          = internal.EXTENT_ITEM_KEY
	FREE_SPACE_BITMAP_KEY    = internal.FREE_SPACE_BITMAP_KEY
	FREE_SPACE_EXTENT_KEY    = internal.FREE_SPACE_EXTENT_KEY
	FREE_SPACE_INFO_KEY      = internal.FREE_SPACE_INFO_KEY
	INODE_ITEM_KEY           = internal.INODE_ITEM_KEY
	INODE_REF_KEY            = internal.INODE_REF_KEY
	METADATA_ITEM_KEY        = internal.METADATA_ITEM_KEY
	ORPHAN_ITEM_KEY          = internal.ORPHAN_ITEM_KEY
	PERSISTENT_ITEM_KEY      = internal.PERSISTENT_ITEM_KEY
	QGROUP_RELATION_KEY      = internal.QGROUP_RELATION_KEY
	ROOT_ITEM_KEY            = internal.ROOT_ITEM_KEY
	SHARED_BLOCK_REF_KEY     = internal.SHARED_BLOCK_REF_KEY
	SHARED_DATA_REF_KEY      = internal.SHARED_DATA_REF_KEY
	TREE_BLOCK_REF_KEY       = internal.TREE_BLOCK_REF_KEY
	UNTYPED_KEY              = internal.UNTYPED_KEY
	UUID_RECEIVED_SUBVOL_KEY = internal.UUID_RECEIVED_SUBVOL_KEY
	UUID_SUBVOL_KEY          = internal.UUID_SUBVOL_KEY
	XATTR_ITEM_KEY           = internal.XATTR_ITEM_KEY
)

var keytype2gotype = map[Type]reflect.Type{
	BLOCK_GROUP_ITEM_KEY:     reflect.TypeOf(BlockGroup{}),
	CHUNK_ITEM_KEY:           reflect.TypeOf(Chunk{}),
	DEV_EXTENT_KEY:           reflect.TypeOf(DevExtent{}),
	DEV_ITEM_KEY:             reflect.TypeOf(Dev{}),
	DIR_INDEX_KEY:            reflect.TypeOf(DirList{}),
	DIR_ITEM_KEY:             reflect.TypeOf(DirList{}),
	EXTENT_DATA_KEY:          reflect.TypeOf(FileExtent{}),
	EXTENT_DATA_REF_KEY:      reflect.TypeOf(ExtentDataRef{}),
	EXTENT_ITEM_KEY:          reflect.TypeOf(Extent{}),
	FREE_SPACE_BITMAP_KEY:    reflect.TypeOf(FreeSpaceBitmap{}),
	FREE_SPACE_EXTENT_KEY:    reflect.TypeOf(Empty{}),
	FREE_SPACE_INFO_KEY:      reflect.TypeOf(FreeSpaceInfo{}),
	INODE_ITEM_KEY:           reflect.TypeOf(Inode{}),
	INODE_REF_KEY:            reflect.TypeOf(InodeRefList{}),
	METADATA_ITEM_KEY:        reflect.TypeOf(Metadata{}),
	ORPHAN_ITEM_KEY:          reflect.TypeOf(Empty{}),
	PERSISTENT_ITEM_KEY:      reflect.TypeOf(DevStats{}),
	QGROUP_RELATION_KEY:      reflect.TypeOf(Empty{}),
	ROOT_ITEM_KEY:            reflect.TypeOf(Root{}),
	SHARED_BLOCK_REF_KEY:     reflect.TypeOf(Empty{}),
	SHARED_DATA_REF_KEY:      reflect.TypeOf(SharedDataRef{}),
	TREE_BLOCK_REF_KEY:       reflect.TypeOf(Empty{}),
	UUID_RECEIVED_SUBVOL_KEY: reflect.TypeOf(UUIDMap{}),
	UUID_SUBVOL_KEY:          reflect.TypeOf(UUIDMap{}),
	XATTR_ITEM_KEY:           reflect.TypeOf(DirList{}),
}
var untypedObjID2gotype = map[internal.ObjID]reflect.Type{
	internal.FREE_SPACE_OBJECTID: reflect.TypeOf(FreeSpaceHeader{}),
}

func (BlockGroup) isItem()      {}
func (Chunk) isItem()           {}
func (Dev) isItem()             {}
func (DevExtent) isItem()       {}
func (DevStats) isItem()        {}
func (DirList) isItem()         {}
func (Empty) isItem()           {}
func (Extent) isItem()          {}
func (ExtentDataRef) isItem()   {}
func (FileExtent) isItem()      {}
func (FreeSpaceBitmap) isItem() {}
func (FreeSpaceHeader) isItem() {}
func (FreeSpaceInfo) isItem()   {}
func (Inode) isItem()           {}
func (InodeRefList) isItem()    {}
func (Metadata) isItem()        {}
func (Root) isItem()            {}
func (SharedDataRef) isItem()   {}
func (UUIDMap) isItem()         {}