From 1145f9a47c8e368dd7f83ce19e9f06b9eba7b0ad Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 16 Jul 2022 02:55:58 -0600 Subject: store sums in a big ol slice --- lib/btrfsprogs/btrfsinspect/scanforextents/gaps.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/btrfsprogs/btrfsinspect/scanforextents/gaps.go') diff --git a/lib/btrfsprogs/btrfsinspect/scanforextents/gaps.go b/lib/btrfsprogs/btrfsinspect/scanforextents/gaps.go index 90351a5..f67b498 100644 --- a/lib/btrfsprogs/btrfsinspect/scanforextents/gaps.go +++ b/lib/btrfsprogs/btrfsinspect/scanforextents/gaps.go @@ -52,7 +52,7 @@ func roundUp[T constraints.Integer](x, multiple T) T { return ((x + multiple - 1) / multiple) * multiple } -func WalkGapsOneDev(ctx context.Context, dev *btrfs.Device, +func WalkGaps(ctx context.Context, gaps []PhysicalGap, blockSize btrfsvol.PhysicalAddr, progress func(cur, total int64), main func(btrfsvol.PhysicalAddr) error, -- cgit v1.2.3-2-g168b