summaryrefslogtreecommitdiff
path: root/lib/btrfs/btrfsitem/items_gen.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/btrfs/btrfsitem/items_gen.go')
-rw-r--r--lib/btrfs/btrfsitem/items_gen.go97
1 files changed, 97 insertions, 0 deletions
diff --git a/lib/btrfs/btrfsitem/items_gen.go b/lib/btrfs/btrfsitem/items_gen.go
new file mode 100644
index 0000000..3b84d60
--- /dev/null
+++ b/lib/btrfs/btrfsitem/items_gen.go
@@ -0,0 +1,97 @@
+// Code generated by Make. DO NOT EDIT.
+
+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(DirEntries{}),
+ DIR_ITEM_KEY: reflect.TypeOf(DirEntries{}),
+ 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(DirEntries{}),
+}
+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 (DirEntries) 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() {}