From 04d6677e52352a7e3ec791e3e817cfe3865e7d6d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 26 May 2022 02:08:58 -0600 Subject: more --- pkg/btrfs/types_structs.go | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'pkg/btrfs/types_structs.go') diff --git a/pkg/btrfs/types_structs.go b/pkg/btrfs/types_structs.go index 22e3f73..bfaa0e6 100644 --- a/pkg/btrfs/types_structs.go +++ b/pkg/btrfs/types_structs.go @@ -23,7 +23,7 @@ type Key struct { type Time struct { Sec int64 `bin:"off=0, siz=8"` // Number of seconds since 1970-01-01T00:00:00Z. - NSec uint64 `bin:"off=8, siz=4"` // Number of nanoseconds since the beginning of the second. + NSec uint32 `bin:"off=8, siz=4"` // Number of nanoseconds since the beginning of the second. binstruct.End `bin:"off=c"` } @@ -259,29 +259,6 @@ type Item struct { Data Ref[LogicalAddr, []byte] `bin:"-"` } -type DevItem struct { - DeviceID ObjID `bin:"off=0, siz=8"` // device ID - - NumBytes uint64 `bin:"off=8, siz=8"` // number of bytes - NumBytesUsed uint64 `bin:"off=10, siz=8"` // number of bytes used - - IOOptimalAlign uint32 `bin:"off=18, siz=4"` // optimal I/O align - IOOptimalWidth uint32 `bin:"off=1c, siz=4"` // optimal I/O width - IOMinSize uint32 `bin:"off=20, siz=4"` // minimal I/O size (sector size) - - Type uint64 `bin:"off=24, siz=8"` // type - Generation Generation `bin:"off=2c, siz=8"` // generation - StartOffset uint64 `bin:"off=34, siz=8"` // start offset - DevGroup uint32 `bin:"off=3c, siz=4"` // dev group - SeekSpeed uint8 `bin:"off=40, siz=1"` // seek speed - Bandwidth uint8 `bin:"off=41, siz=1"` // bandwidth - - DevUUID UUID `bin:"off=42, siz=10"` // device UUID - FSUUID UUID `bin:"off=52, siz=10"` // FS UUID - - binstruct.End `bin:"off=62"` -} - type Chunk struct { // Maps logical address to physical. Size uint64 `bin:"off=0, siz=8"` // size of chunk (bytes) -- cgit v1.2.3-2-g168b