mirror of https://github.com/digint/btrbk
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
parent
33e3dee046
commit
bda59056e8
6
btrbk
6
btrbk
|
@ -6732,7 +6732,7 @@ MAIN:
|
||||||
foreach my $droot (vinfo_subsection($svol, 'target')) {
|
foreach my $droot (vinfo_subsection($svol, 'target')) {
|
||||||
foreach (sort { $a->{SUBVOL_PATH} cmp $b->{SUBVOL_PATH} } get_receive_targets($droot, $snapshot)) {
|
foreach (sort { $a->{SUBVOL_PATH} cmp $b->{SUBVOL_PATH} } get_receive_targets($droot, $snapshot)) {
|
||||||
push @data, { %$snapshot_data,
|
push @data, { %$snapshot_data,
|
||||||
type => "received",
|
type => "snapshot,backup",
|
||||||
target_type => $_->{CONFIG}{target_type}, # "send-receive" or "raw"
|
target_type => $_->{CONFIG}{target_type}, # "send-receive" or "raw"
|
||||||
vinfo_prefixed_keys("target", $_),
|
vinfo_prefixed_keys("target", $_),
|
||||||
};
|
};
|
||||||
|
@ -6788,7 +6788,7 @@ MAIN:
|
||||||
if($parent_snapshot) {
|
if($parent_snapshot) {
|
||||||
$stats_correlated++;
|
$stats_correlated++;
|
||||||
my $up_to_date = ($parent_snapshot->{node}{cgen} == $svol->{node}{gen});
|
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"
|
target_type => $_->{CONFIG}{target_type}, # "send-receive" or "raw"
|
||||||
vinfo_prefixed_keys("target", $target_vol),
|
vinfo_prefixed_keys("target", $target_vol),
|
||||||
vinfo_prefixed_keys("snapshot", $parent_snapshot),
|
vinfo_prefixed_keys("snapshot", $parent_snapshot),
|
||||||
|
@ -6801,7 +6801,7 @@ MAIN:
|
||||||
# don't display all subvolumes in $droot, only the ones matching snapshot_name
|
# don't display all subvolumes in $droot, only the ones matching snapshot_name
|
||||||
if(vinfo_is_btrbk_snapshot($target_vol, $snapshot_name)) {
|
if(vinfo_is_btrbk_snapshot($target_vol, $snapshot_name)) {
|
||||||
if($incomplete_backup) { $stats_incomplete++; } else { $stats_orphaned++; }
|
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"
|
target_type => $_->{CONFIG}{target_type}, # "send-receive" or "raw"
|
||||||
# suppress "orphaned" status here (snapshot column is empty anyways)
|
# suppress "orphaned" status here (snapshot column is empty anyways)
|
||||||
# status => ($incomplete_backup ? "incomplete" : "orphaned"),
|
# status => ($incomplete_backup ? "incomplete" : "orphaned"),
|
||||||
|
|
Loading…
Reference in New Issue