Skip to content

Commit

Permalink
feat: add btrfs-progs v5.10.1 bug workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
speed47 committed Apr 16, 2024
1 parent 0e9af06 commit 53a6728
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions btrfs-list
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 53a6728

Please sign in to comment.