summaryrefslogtreecommitdiff
path: root/pkg/btrfs/btrfsitem/item_devextent.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-06-30 04:14:55 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-06-30 04:14:55 -0600
commitb78fe1835fed316bd8e9e51c91fcc05422330490 (patch)
treeeb8ed91bf6160aa732229cc4374eaf0c527b50ef /pkg/btrfs/btrfsitem/item_devextent.go
parent27d2f3a0efe6de94c7720907557e640e8a2f1428 (diff)
lock sizes, use blockgroups
Diffstat (limited to 'pkg/btrfs/btrfsitem/item_devextent.go')
-rw-r--r--pkg/btrfs/btrfsitem/item_devextent.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/btrfs/btrfsitem/item_devextent.go b/pkg/btrfs/btrfsitem/item_devextent.go
index c7707bd..56fba27 100644
--- a/pkg/btrfs/btrfsitem/item_devextent.go
+++ b/pkg/btrfs/btrfsitem/item_devextent.go
@@ -25,7 +25,8 @@ func (devext DevExtent) Mapping(key internal.Key) btrfsvol.Mapping {
Dev: btrfsvol.DeviceID(key.ObjectID),
Addr: btrfsvol.PhysicalAddr(key.Offset),
},
- Size: devext.Length,
- Flags: nil,
+ Size: devext.Length,
+ SizeLocked: true,
+ Flags: nil,
}
}