btrbk: action origin: correctly handle root subvolumes having uuid

pull/293/head
Axel Burri 2019-07-15 18:36:06 +02:00
parent 8de7f45e89
commit 5afa270577
1 changed files with 2 additions and 1 deletions

3
btrbk
View File

@ -4723,7 +4723,8 @@ sub _origin_tree
my $uuid = $node->{uuid} || die;
# cache a bit, this might be large
$nodelist //= [ (sort { $a->{REL_PATH} cmp $b->{REL_PATH} } values %uuid_cache) ];
# note: root subvolumes dont have REL_PATH
$nodelist //= [ (sort { ($a->{REL_PATH} // "") cmp ($b->{REL_PATH} // "") } values %uuid_cache) ];
my $out_path;
$out_path = _fs_path($node);