diff options
Diffstat (limited to 'pkg/btrfs/btrfsitem/item_dev.go')
-rw-r--r-- | pkg/btrfs/btrfsitem/item_dev.go | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/pkg/btrfs/btrfsitem/item_dev.go b/pkg/btrfs/btrfsitem/item_dev.go index fea34d5..9851002 100644 --- a/pkg/btrfs/btrfsitem/item_dev.go +++ b/pkg/btrfs/btrfsitem/item_dev.go @@ -6,24 +6,24 @@ import ( ) type Dev struct { // DEV_ITEM=216 - DeviceID internal.ObjID `bin:"off=0x0, siz=0x8"` // device ID + DeviceID internal.ObjID `bin:"off=0x0, siz=0x8"` - NumBytes uint64 `bin:"off=0x8, siz=0x8"` // number of bytes - NumBytesUsed uint64 `bin:"off=0x10, siz=0x8"` // number of bytes used + NumBytes uint64 `bin:"off=0x8, siz=0x8"` + NumBytesUsed uint64 `bin:"off=0x10, siz=0x8"` - IOOptimalAlign uint32 `bin:"off=0x18, siz=0x4"` // optimal I/O align - IOOptimalWidth uint32 `bin:"off=0x1c, siz=0x4"` // optimal I/O width - IOMinSize uint32 `bin:"off=0x20, siz=0x4"` // minimal I/O size (sector size) + IOOptimalAlign uint32 `bin:"off=0x18, siz=0x4"` + IOOptimalWidth uint32 `bin:"off=0x1c, siz=0x4"` + IOMinSize uint32 `bin:"off=0x20, siz=0x4"` // sector size - Type uint64 `bin:"off=0x24, siz=0x8"` // type - Generation internal.Generation `bin:"off=0x2c, siz=0x8"` // generation - StartOffset uint64 `bin:"off=0x34, siz=0x8"` // start offset - DevGroup uint32 `bin:"off=0x3c, siz=0x4"` // dev group - SeekSpeed uint8 `bin:"off=0x40, siz=0x1"` // seek speed - Bandwidth uint8 `bin:"off=0x41, siz=0x1"` // bandwidth + Type uint64 `bin:"off=0x24, siz=0x8"` + Generation internal.Generation `bin:"off=0x2c, siz=0x8"` + StartOffset uint64 `bin:"off=0x34, siz=0x8"` + DevGroup uint32 `bin:"off=0x3c, siz=0x4"` + SeekSpeed uint8 `bin:"off=0x40, siz=0x1"` + Bandwidth uint8 `bin:"off=0x41, siz=0x1"` - DevUUID internal.UUID `bin:"off=0x42, siz=0x10"` // device UUID - FSUUID internal.UUID `bin:"off=0x52, siz=0x10"` // FS UUID + DevUUID internal.UUID `bin:"off=0x42, siz=0x10"` + FSUUID internal.UUID `bin:"off=0x52, siz=0x10"` binstruct.End `bin:"off=0x62"` } |