From 74be074e6f0347dd729ea450fd5811dc1500f2f8 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Sun, 4 Aug 2019 13:25:01 +0200 Subject: [PATCH] btrbk: remove warnings on superfluous "btrfs subvolume show" output Silently accept compatible versions of btrfs-progs. Required keys are being checked below, no need to warn here. e.g. btrfs-progs >= v5.2.1 prints: Quota group: 0/258 Limit referenced: - Limit exclusive: 1.00GiB Usage referenced: 16.00KiB Usage exclusive: 16.00KiB --- btrbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btrbk b/btrbk index d62a8a4..4339b7b 100755 --- a/btrbk +++ b/btrbk @@ -1001,7 +1001,7 @@ sub btrfs_subvolume_show($;@) if($trans{$key}) { $detail{$trans{$key}} = $value; } else { - WARN "Failed to parse subvolume detail \"$key: $value\" for: $vol->{PRINT}"; + DEBUG "Ignoring subvolume detail \"$key: $value\" for: $vol->{PRINT}"; } } DEBUG "Parsed " . scalar(keys %detail) . " subvolume detail items: $vol->{PRINT}";