diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-01 01:56:16 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-01 01:56:16 -0600 |
commit | 70fc3adf402eb956e6061fae75e46c46c1ad606d (patch) | |
tree | 5611c676dcb91405d7a327e42f664f2496107944 /pkg/btrfs/btrfsitem/item_chunk.go | |
parent | 3825cf60fd652f22acc438d50028701d27a7402d (diff) |
update main, kinda
Diffstat (limited to 'pkg/btrfs/btrfsitem/item_chunk.go')
-rw-r--r-- | pkg/btrfs/btrfsitem/item_chunk.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/btrfs/btrfsitem/item_chunk.go b/pkg/btrfs/btrfsitem/item_chunk.go index 41706c3..17f069c 100644 --- a/pkg/btrfs/btrfsitem/item_chunk.go +++ b/pkg/btrfs/btrfsitem/item_chunk.go @@ -2,13 +2,13 @@ package btrfsitem import ( "lukeshu.com/btrfs-tools/pkg/binstruct" - "lukeshu.com/btrfs-tools/pkg/btrfs/btrfstyp" + "lukeshu.com/btrfs-tools/pkg/btrfs/internal" ) type Chunk struct { // CHUNK_ITEM=228 // Maps logical address to physical. Size uint64 `bin:"off=0x0, siz=0x8"` // size of chunk (bytes) - Owner btrfstyp.ObjID `bin:"off=0x8, siz=0x8"` // root referencing this chunk (2) + Owner internal.ObjID `bin:"off=0x8, siz=0x8"` // root referencing this chunk (2) StripeLen uint64 `bin:"off=0x10, siz=0x8"` // stripe length Type uint64 `bin:"off=0x18, siz=0x8"` // type (same as flags for block group?) IOOptimalAlign uint32 `bin:"off=0x20, siz=0x4"` // optimal io alignment @@ -22,9 +22,9 @@ type Chunk struct { // CHUNK_ITEM=228 type ChunkStripe struct { // Stripes follow (for each number of stripes): - DeviceID btrfstyp.ObjID `bin:"off=0, siz=8"` // device ID + DeviceID internal.ObjID `bin:"off=0, siz=8"` // device ID Offset uint64 `bin:"off=8, siz=8"` // offset - DeviceUUID btrfstyp.UUID `bin:"off=10, siz=10"` // device UUID + DeviceUUID internal.UUID `bin:"off=10, siz=10"` // device UUID binstruct.End `bin:"off=20"` } |