summaryrefslogtreecommitdiff
path: root/pkg/btrfs/btrfsitem/item_devextent.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-06-01 01:27:19 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-06-01 01:27:19 -0600
commit3825cf60fd652f22acc438d50028701d27a7402d (patch)
tree24b86afb8513891274dfaa8b982c4c94c1a65a5d /pkg/btrfs/btrfsitem/item_devextent.go
parent2348cdbe2a3417990a2088f9e4e91adf0c45617d (diff)
wow
Diffstat (limited to 'pkg/btrfs/btrfsitem/item_devextent.go')
-rw-r--r--pkg/btrfs/btrfsitem/item_devextent.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/btrfs/btrfsitem/item_devextent.go b/pkg/btrfs/btrfsitem/item_devextent.go
new file mode 100644
index 0000000..4bdd1c3
--- /dev/null
+++ b/pkg/btrfs/btrfsitem/item_devextent.go
@@ -0,0 +1,15 @@
+package btrfsitem
+
+import (
+ "lukeshu.com/btrfs-tools/pkg/binstruct"
+ "lukeshu.com/btrfs-tools/pkg/btrfs/btrfstyp"
+)
+
+type DevExtent struct { // DEV_EXTENT=204
+ ChunkTree int64 `bin:"off=0, siz=8"`
+ ChunkObjectID btrfstyp.ObjID `bin:"off=8, siz=8"`
+ ChunkOffset int64 `bin:"off=16, siz=8"`
+ Length int64 `bin:"off=24, siz=8"`
+ ChunkTreeUUID btrfstyp.UUID `bin:"off=32, siz=16"`
+ binstruct.End `bin:"off=48"`
+}