mirror of https://github.com/digint/btrbk
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
parent
49adbe6e28
commit
7a8df85f2e
4
btrbk
4
btrbk
|
@ -2756,7 +2756,9 @@ sub vinfo_resolved($$)
|
||||||
if($vol->{NODE_SUBDIR}) {
|
if($vol->{NODE_SUBDIR}) {
|
||||||
return undef unless($jpath =~ s/^\Q$vol->{NODE_SUBDIR}\E\///);
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue