mirror of https://github.com/digint/btrbk
btrbk: bugfix: add missing (fake) mountpoint for raw targets
For raw targets, get_best_parent() dies as VINFO_MOUNTPOINT is not
defined on raw vinfo.
Fixes regression of:
d64e237e94
btrbk: get_best_parent: consider all parent/child relations
pull/286/head
parent
538dab5396
commit
01230cde22
1
btrbk
1
btrbk
|
@ -2706,6 +2706,7 @@ sub vinfo_init_raw_root($;@)
|
||||||
}
|
}
|
||||||
|
|
||||||
$droot->{node} = $tree_root;
|
$droot->{node} = $tree_root;
|
||||||
|
$droot->{VINFO_MOUNTPOINT} = $droot; # fake mountpoint
|
||||||
$raw_url_cache{$droot->{URL}} = $tree_root;
|
$raw_url_cache{$droot->{URL}} = $tree_root;
|
||||||
|
|
||||||
return $tree_root;
|
return $tree_root;
|
||||||
|
|
Loading…
Reference in New Issue