btrbk: more accurate wording on type values for action list

Terminology for "backup" is specified in btrbk(1), use it:

  Backup is a btrbk terminology for a "read-only subvolume created
  with send/receive" (showing a received-uuid).
pull/358/head
Axel Burri 2020-12-13 14:05:32 +01:00
parent 33e3dee046
commit bda59056e8
1 changed files with 3 additions and 3 deletions

6
btrbk
View File

@ -6732,7 +6732,7 @@ MAIN:
foreach my $droot (vinfo_subsection($svol, 'target')) {
foreach (sort { $a->{SUBVOL_PATH} cmp $b->{SUBVOL_PATH} } get_receive_targets($droot, $snapshot)) {
push @data, { %$snapshot_data,
type => "received",
type => "snapshot,backup",
target_type => $_->{CONFIG}{target_type}, # "send-receive" or "raw"
vinfo_prefixed_keys("target", $_),
};
@ -6788,7 +6788,7 @@ MAIN:
if($parent_snapshot) {
$stats_correlated++;
my $up_to_date = ($parent_snapshot->{node}{cgen} == $svol->{node}{gen});
push @data, { type => "received",
push @data, { type => "snapshot,backup",
target_type => $_->{CONFIG}{target_type}, # "send-receive" or "raw"
vinfo_prefixed_keys("target", $target_vol),
vinfo_prefixed_keys("snapshot", $parent_snapshot),
@ -6801,7 +6801,7 @@ MAIN:
# don't display all subvolumes in $droot, only the ones matching snapshot_name
if(vinfo_is_btrbk_snapshot($target_vol, $snapshot_name)) {
if($incomplete_backup) { $stats_incomplete++; } else { $stats_orphaned++; }
push @data, { type => "received",
push @data, { type => "backup",
target_type => $_->{CONFIG}{target_type}, # "send-receive" or "raw"
# suppress "orphaned" status here (snapshot column is empty anyways)
# status => ($incomplete_backup ? "incomplete" : "orphaned"),