From e9fe2cb5f5558b984ebc7b2b123787dcbd0aa283 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Tue, 22 Feb 2022 20:28:17 +0100 Subject: [PATCH] btrbk: display all source subvolumes in btrbk usage --- btrbk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/btrbk b/btrbk index cbea113..f959acc 100755 --- a/btrbk +++ b/btrbk @@ -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); }