From ce9c21bd246b5bfab760e1121f73983afbce26b2 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Thu, 22 Jul 2021 17:36:48 +0200 Subject: [PATCH] btrbk: tidy check for btrbk subvolume The original idea was probably to have a trace log for skipped subvols. --- btrbk | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/btrbk b/btrbk index e2ac18b..5d6dd22 100755 --- a/btrbk +++ b/btrbk @@ -4581,13 +4581,7 @@ sub macro_delete($$$$;@) my %delete_options = @_; my @schedule; - foreach my $vol (@{vinfo_subvol_list($root_subvol)}) { - 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; - } + foreach my $vol (@{vinfo_subvol_list($root_subvol, btrbk_direct_leaf => $subvol_basename)}) { push(@schedule, { value => $vol, # name => $vol->{PRINT}, # only for logging btrbk_date => $vol->{node}{BTRBK_DATE},