diff --git a/btrbk b/btrbk index 551274a..8fccfe7 100755 --- a/btrbk +++ b/btrbk @@ -1037,7 +1037,14 @@ sub btrfs_subvolume_list($;@) { my %node; # NOTE: btrfs-progs >= 4.13.2 pads uuid's with 36 whitespaces - unless(/^ID\s+([0-9]+)\s+gen\s+([0-9]+)\s+cgen\s+([0-9]+)\s+top level\s+([0-9]+)\s+parent_uuid\s+([0-9a-f-]+)\s+received_uuid\s+([0-9a-f-]+)\s+uuid\s+([0-9a-f-]+)\s+path\s+(.+)$/) { + unless(/^ID \s+ ([0-9]+) \s+ + gen \s+ ([0-9]+) \s+ + cgen \s+ ([0-9]+) \s+ + top\ level \s+ ([0-9]+) \s+ + parent_uuid \s+ ([0-9a-f-]+) \s+ + received_uuid \s+ ([0-9a-f-]+) \s+ + uuid \s+ ([0-9a-f-]+) \s+ + path \s+ (.+) $/x) { ERROR "Failed to parse subvolume list (unsupported btrfs-progs) for: $vol->{PRINT}"; DEBUG "Offending line: $_"; return undef;