From 7a8df85f2e6925ee6a29062fb56132ca2090474c Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Mon, 15 Oct 2018 16:19:52 +0200 Subject: [PATCH] btrbk: fix regression: add node to return value of vinfo_resolved() The FORCE_PRESERVE information is set on the node, and was lost for "latest common target" as get_receive_targets() returned vinfo without node information. fixes regression: 6c502cb btrbk: search complete target tree for correlated subvolumes --- btrbk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/btrbk b/btrbk index 557c9cf..ab6cf99 100755 --- a/btrbk +++ b/btrbk @@ -2756,7 +2756,9 @@ sub vinfo_resolved($$) if($vol->{NODE_SUBDIR}) { return undef unless($jpath =~ s/^\Q$vol->{NODE_SUBDIR}\E\///); } - return vinfo_child($vol, $jpath); + my $vinfo = vinfo_child($vol, $jpath); + $vinfo->{node} = $node; + return $vinfo; }