summaryrefslogtreecommitdiff
path: root/lib/btrfs/btrfsitem/items_gen.go
blob: 85739676160c20d0ae18717b4e09a8c4066f6367 (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
90
91
92
93
94
95
96
97
98
99
// Code generated by Make.  DO NOT EDIT.

// SPDX-License-Identifier: GPL-2.0-or-later

package btrfsitem

import (
	"reflect"

	"git.lukeshu.com/btrfs-progs-ng/lib/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_CSUM_KEY          = internal.EXTENT_CSUM_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_BACKREF_KEY         = internal.ROOT_BACKREF_KEY
	ROOT_ITEM_KEY            = internal.ROOT_ITEM_KEY
	ROOT_REF_KEY             = internal.ROOT_REF_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(DirEntry{}),
	DIR_ITEM_KEY:             reflect.TypeOf(DirEntry{}),
	EXTENT_CSUM_KEY:          reflect.TypeOf(ExtentCSum{}),
	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(InodeRef{}),
	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_BACKREF_KEY:         reflect.TypeOf(RootRef{}),
	ROOT_ITEM_KEY:            reflect.TypeOf(Root{}),
	ROOT_REF_KEY:             reflect.TypeOf(RootRef{}),
	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(DirEntry{}),
}
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 (DirEntry) isItem()        {}
func (Empty) isItem()           {}
func (Extent) isItem()          {}
func (ExtentCSum) isItem()      {}
func (ExtentDataRef) isItem()   {}
func (FileExtent) isItem()      {}
func (FreeSpaceBitmap) isItem() {}
func (FreeSpaceHeader) isItem() {}
func (FreeSpaceInfo) isItem()   {}
func (Inode) isItem()           {}
func (InodeRef) isItem()        {}
func (Metadata) isItem()        {}
func (Root) isItem()            {}
func (RootRef) isItem()         {}
func (SharedDataRef) isItem()   {}
func (UUIDMap) isItem()         {}