Description of problem:
Currently if we want to find the devices which is added to a btrfs filesystem, the only way is use blkid and compare the UUID. It is helpful if there is a API used to show the relationship between btrfs filesystem and devices.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
which is in libguestfs >= 1.33.29.
Fixed upstream, thanks Pino. However new APIs for speculative
non-customer features are not RHEL 7.3 material, so I have
kicked this to RHEL 7.4 when undoubtedly we'll want to do yet
another rebase, and that will pick up this fix.
Verified with package:
1. $ guestfish
><fs> scratch 1G
><fs> part-init /dev/sda gpt
><fs> part-add /dev/sda p 34 600000
><fs> part-add /dev/sda p 600001 1200000
><fs> part-add /dev/sda p 1200001 2097118
><fs> mkfs ext4 /dev/sda2
><fs> mkfs-btrfs "/dev/sda1 /dev/sda3"
><fs> btrfs-filesystem-show /dev/sda1
The API lists all the associated devices of a btrfs filesystem. So Verified.
Pino provided the test steps. Thanks.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.