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
Axel Burri 2019-05-19 15:20:13 +02:00
parent 538dab5396
commit 01230cde22
1 changed files with 1 additions and 0 deletions

1
btrbk
View File

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