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
pull/260/head
Axel Burri 2018-10-15 16:19:52 +02:00
parent 49adbe6e28
commit 7a8df85f2e
1 changed files with 3 additions and 1 deletions

4
btrbk
View File

@ -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;
}