diff options
Diffstat (limited to 'lib/btrfsprogs/btrfsinspect/recoverchunks.go')
-rw-r--r-- | lib/btrfsprogs/btrfsinspect/recoverchunks.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/btrfsprogs/btrfsinspect/recoverchunks.go b/lib/btrfsprogs/btrfsinspect/recoverchunks.go index 257a4fd..25794be 100644 --- a/lib/btrfsprogs/btrfsinspect/recoverchunks.go +++ b/lib/btrfsprogs/btrfsinspect/recoverchunks.go @@ -150,6 +150,8 @@ func (found ScanOneDevResult) AddToLV(ctx context.Context, fs *btrfs.FS, dev *bt } } +// ScanOneDev mostly mimics btrfs-progs +// cmds/rescue-chunk-recover.c:scan_one_device(). func ScanOneDev(ctx context.Context, dev *btrfs.Device, superblock btrfs.Superblock) (ScanOneDevResult, error) { result := ScanOneDevResult{ FoundNodes: make(map[btrfsvol.LogicalAddr][]btrfsvol.PhysicalAddr), |