mirror of https://github.com/digint/btrbk
btrbk: tidy check for btrbk subvolume
The original idea was probably to have a trace log for skipped subvols.pull/411/head
parent
f86c563715
commit
ce9c21bd24
8
btrbk
8
btrbk
|
@ -4581,13 +4581,7 @@ sub macro_delete($$$$;@)
|
||||||
my %delete_options = @_;
|
my %delete_options = @_;
|
||||||
|
|
||||||
my @schedule;
|
my @schedule;
|
||||||
foreach my $vol (@{vinfo_subvol_list($root_subvol)}) {
|
foreach my $vol (@{vinfo_subvol_list($root_subvol, btrbk_direct_leaf => $subvol_basename)}) {
|
||||||
unless($vol->{node}{BTRBK_DATE} &&
|
|
||||||
($vol->{SUBVOL_DIR} eq "") &&
|
|
||||||
($vol->{node}{BTRBK_BASENAME} eq $subvol_basename)) {
|
|
||||||
TRACE "Target subvolume does not match btrbk filename scheme, skipping: $vol->{PRINT}" if($do_trace);
|
|
||||||
next;
|
|
||||||
}
|
|
||||||
push(@schedule, { value => $vol,
|
push(@schedule, { value => $vol,
|
||||||
# name => $vol->{PRINT}, # only for logging
|
# name => $vol->{PRINT}, # only for logging
|
||||||
btrbk_date => $vol->{node}{BTRBK_DATE},
|
btrbk_date => $vol->{node}{BTRBK_DATE},
|
||||||
|
|
Loading…
Reference in New Issue