diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-04-05 15:26:48 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-04-13 13:44:25 -0600 |
commit | 504c3695c7dae682504335a47e1f0f873f95ca30 (patch) | |
tree | 8b5f1c09f950bdafc57d520730d451fed363a93e /lib/btrfsutil/rebuilt_tree.go | |
parent | 2bca1422067e0de0a5ec1b37c37f280e797a8072 (diff) |
btrfsutil: RebuiltForrest.RebuiltTree(): Return errors
Diffstat (limited to 'lib/btrfsutil/rebuilt_tree.go')
-rw-r--r-- | lib/btrfsutil/rebuilt_tree.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/btrfsutil/rebuilt_tree.go b/lib/btrfsutil/rebuilt_tree.go index e507851..5d38bb1 100644 --- a/lib/btrfsutil/rebuilt_tree.go +++ b/lib/btrfsutil/rebuilt_tree.go @@ -23,6 +23,10 @@ import ( type RebuiltTree struct { // static + + rootErr error + ancestorLoop bool + ID btrfsprim.ObjID UUID btrfsprim.UUID Parent *RebuiltTree @@ -30,8 +34,11 @@ type RebuiltTree struct { forrest *RebuiltForrest // mutable - mu sync.RWMutex + + mu sync.RWMutex + Roots containers.Set[btrfsvol.LogicalAddr] + // There are 3 more mutable "members" that are protected by // `mu`; but they live in a shared Cache. They are all // derived from tree.Roots, which is why it's OK if they get |