btrbk: display all source subvolumes in btrbk usage

pull/459/head
Axel Burri 2022-02-22 20:28:17 +01:00
parent 31ce14e4c2
commit e9fe2cb5f5
1 changed files with 2 additions and 2 deletions

4
btrbk
View File

@ -6449,13 +6449,13 @@ MAIN:
};
foreach my $sroot (vinfo_subsection($config, 'volume')) {
foreach my $svol (vinfo_subsection($sroot, 'subvolume')) {
$push_data->(vinfo_snapshot_root($svol), "source");
$push_data->($svol, "source");
foreach my $droot (vinfo_subsection($svol, 'target')) {
$push_data->($droot, "target");
}
}
}
@data = sort { $a->{type} cmp $b->{type} || $a->{url} cmp $b->{url} } @data;
@data = sort { $a->{url} cmp $b->{url} } @data;
print_formatted("usage", \@data);
exit exit_status($config);
}