summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-08-21 22:09:22 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-08-21 22:09:22 -0600
commit6dd6e79120562f5e914c386b654a233662d5ab40 (patch)
tree7dad82542c5ed4971704c6926ebead773f962bea /cmd
parentc910df75c332f605a26f9f9e09b04e98df054a5f (diff)
polish off dbgsums
Diffstat (limited to 'cmd')
-rw-r--r--cmd/btrfs-rec/inspect_dbgsums.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/btrfs-rec/inspect_dbgsums.go b/cmd/btrfs-rec/inspect_dbgsums.go
index e9fadce..8e230f4 100644
--- a/cmd/btrfs-rec/inspect_dbgsums.go
+++ b/cmd/btrfs-rec/inspect_dbgsums.go
@@ -43,7 +43,8 @@ func init() {
return nil, err
}
var scanResults btrfsinspect.ScanDevicesResult
- if err := lowmemjson.DecodeThenEOF(fh, &scanResults); err != nil {
+ buf := bufio.NewReader(fh)
+ if err := lowmemjson.DecodeThenEOF(buf, &scanResults); err != nil {
return nil, err
}
_ = fh.Close()