From b8a6aaf79968fb9701efcc1fe0a94e2ab7bf6b6b Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Thu, 18 Mar 2021 19:54:46 +0100 Subject: [PATCH] btrbk: warn if no subvolume is configured --- btrbk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/btrbk b/btrbk index 15e56d4..4bbf3e3 100755 --- a/btrbk +++ b/btrbk @@ -6573,6 +6573,9 @@ MAIN: WARN "Skipping volume \"$sroot->{PRINT}\": " . ABORTED_TEXT($sroot), @stderr; next; } + unless(scalar(vinfo_subsection($sroot, 'subvolume'))) { + WARN "No subvolume configured for \"volume $sroot->{URL}\""; + } foreach my $svol (vinfo_subsection($sroot, 'subvolume')) { DEBUG "Initializing subvolume section: $svol->{PRINT}"; unless(vinfo_init_root($svol)) {