summaryrefslogtreecommitdiff
path: root/pkg/btrfs/types_node.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-07-02 16:42:13 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-07-02 17:04:11 -0600
commitcd46b6b734d833a9e2d83ba92e8f7348e63afe7e (patch)
tree929fc86215381fe43927894d86869e0c17d808c8 /pkg/btrfs/types_node.go
parent9ddcd2c3ed2f85247161c5ffa653f33e6a01a9cd (diff)
implement EXTENT_CSUM
Diffstat (limited to 'pkg/btrfs/types_node.go')
-rw-r--r--pkg/btrfs/types_node.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/btrfs/types_node.go b/pkg/btrfs/types_node.go
index 24a02e5..8aafc49 100644
--- a/pkg/btrfs/types_node.go
+++ b/pkg/btrfs/types_node.go
@@ -266,7 +266,7 @@ func (node *Node) unmarshalLeaf(bodyBuf []byte) (int, error) {
}
tail = dataOff
dataBuf := bodyBuf[dataOff : dataOff+dataSize]
- item.Body = btrfsitem.UnmarshalItem(item.Head.Key, dataBuf)
+ item.Body = btrfsitem.UnmarshalItem(item.Head.Key, node.ChecksumType, dataBuf)
node.BodyLeaf = append(node.BodyLeaf, item)
}