btrbk: remove subvolume_path from schedule table

This is the only format where SUBVOL_PATH is displayed. As SUBVOL_PATH
is only available for vinfo_child, this can not be used in global
scope.
pull/411/head
Axel Burri 2021-07-22 17:42:11 +02:00
parent c1610c754d
commit d3d04f2252
1 changed files with 1 additions and 2 deletions

3
btrbk
View File

@ -257,7 +257,7 @@ my %table_formats = (
schedule => { schedule => {
table => [ qw( action -host -port subvolume scheme reason ) ], table => [ qw( action -host -port subvolume scheme reason ) ],
long => [ qw( action -host -port root_path subvolume_path scheme reason ) ], long => [ qw( action -host -port subvolume scheme reason ) ],
raw => [ qw( topic action url host port path hod dow min h d w m y) ], raw => [ qw( topic action url host port path hod dow min h d w m y) ],
}, },
@ -3339,7 +3339,6 @@ sub vinfo_prefixed_keys($$)
$ret{$prefix . lc($_)} = $vinfo->{$_}; $ret{$prefix . lc($_)} = $vinfo->{$_};
} }
$ret{$prefix . "subvolume"} = $vinfo->{PATH}; $ret{$prefix . "subvolume"} = $vinfo->{PATH};
$ret{$prefix . "subvolume_path"} = $vinfo->{SUBVOL_PATH};
my $rsh = vinfo_rsh($vinfo); my $rsh = vinfo_rsh($vinfo);
$ret{$prefix . "rsh"} = ($rsh ? join(" ", @$rsh) : undef), $ret{$prefix . "rsh"} = ($rsh ? join(" ", @$rsh) : undef),
return %ret; return %ret;