diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-14 20:44:27 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-14 20:44:27 -0600 |
commit | 7a55b5b74708242adfffb9a9d8381b02fe11ed38 (patch) | |
tree | ce9afbbaef984f782c1703599f3296d65d7bd871 | |
parent | 75333b3f1dcc0ac23caa9137d9f1fcaff57c4067 (diff) |
ScanForNodes: update docs
-rw-r--r-- | pkg/btrfsmisc/fsck.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/btrfsmisc/fsck.go b/pkg/btrfsmisc/fsck.go index 2c7085e..ea48d12 100644 --- a/pkg/btrfsmisc/fsck.go +++ b/pkg/btrfsmisc/fsck.go @@ -9,8 +9,9 @@ import ( ) // ScanForNodes mimics btrfs-progs -// cmds/rescue-chunk-recover.c:scan_one_device(), except it doesn't do -// anything but log when it finds a node. +// cmds/rescue-chunk-recover.c:scan_one_device(), except rather than +// doing something itself when it finds a node, it simply calls a +// callback function. func ScanForNodes(dev *btrfs.Device, sb btrfs.Superblock, fn func(*util.Ref[btrfs.PhysicalAddr, btrfs.Node], error), prog func(btrfs.PhysicalAddr)) error { devSize, err := dev.Size() if err != nil { |