Description of problem: "is-blockdev"/"is-blockdev-opts" fail to detect "/dev/sda" Version-Release number of selected component (if applicable): libguestfs-tools-c-1.28.1-1.17.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.add an image, and mount the root filesystem # guestfish -N fs ><fs> mount /dev/sda1 / 2. list block devices, and check again. ><fs> list-devices /dev/sda ><fs> is-whole-device /dev/sda true 3. use "is-blockdev" and "is-blockdev-opts" commands. ><fs> is-blockdev /dev/sda false ><fs> is-blockdev-opts /dev/sda false Actual results: as described above, the results are all "false". Expected results: results should be "true". Additional info:
is-blockdev only applies to paths within the guest filesystem, eg: $ guestfish -N fs -m /dev/sda1 <<EOF mknod 060777 10 10 /blockdev is-blockdev /blockdev EOF true I've added an upstream commit to clarify the documentation: https://github.com/libguestfs/libguestfs/commit/abf51ec70b3edfcb5048ef209a1a3b1837aa06e5 I don't think we need to fix this in RHEL, so I'm closing this bug.