summaryrefslogtreecommitdiff
path: root/pkg/btrfs/types_structs.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-05-26 02:08:58 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-05-26 02:08:58 -0600
commit04d6677e52352a7e3ec791e3e817cfe3865e7d6d (patch)
treeb6184f86084cf61cf5066b3c42b9a32e5455e9df /pkg/btrfs/types_structs.go
parentf11acf5f5a8c72af59712cf3cda62c47d1a80e5d (diff)
more
Diffstat (limited to 'pkg/btrfs/types_structs.go')
-rw-r--r--pkg/btrfs/types_structs.go25
1 files changed, 1 insertions, 24 deletions
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)