btrbk: warn if no subvolume is configured

pull/397/head
Axel Burri 2021-03-18 19:54:46 +01:00
parent a8341659be
commit b8a6aaf799
1 changed files with 3 additions and 0 deletions

3
btrbk
View File

@ -6573,6 +6573,9 @@ MAIN:
WARN "Skipping volume \"$sroot->{PRINT}\": " . ABORTED_TEXT($sroot), @stderr; WARN "Skipping volume \"$sroot->{PRINT}\": " . ABORTED_TEXT($sroot), @stderr;
next; next;
} }
unless(scalar(vinfo_subsection($sroot, 'subvolume'))) {
WARN "No subvolume configured for \"volume $sroot->{URL}\"";
}
foreach my $svol (vinfo_subsection($sroot, 'subvolume')) { foreach my $svol (vinfo_subsection($sroot, 'subvolume')) {
DEBUG "Initializing subvolume section: $svol->{PRINT}"; DEBUG "Initializing subvolume section: $svol->{PRINT}";
unless(vinfo_init_root($svol)) { unless(vinfo_init_root($svol)) {