From 53a6728602b20ea9688ac90bb8c55ba7873e06fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Tue, 16 Apr 2024 09:58:59 +0200 Subject: [PATCH] feat: add btrfs-progs v5.10.1 bug workaround --- btrfs-list | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/btrfs-list b/btrfs-list index e325fd9..aed8e48 100755 --- a/btrfs-list +++ b/btrfs-list @@ -565,6 +565,11 @@ foreach (@fishow) { if (not exists $filesystems{$fuuid}) { $filesystems{$fuuid} = {uuid => $fuuid, label => $label, devices => [], devinfo => {}}; } + # btrfs-progs v5.10.1 bug workaround: "dm-X" instead of "/dev/dm-X" + if ($dev && $dev =~ m{^dm-}) { + debug("Applying workaround $dev => /dev/$dev"); + $dev = "/dev/$dev"; + } if (-l $dev) { $dev = link2real($dev); }