xfs_info fails when mounted device name is specified as argument in RHEL 8
Issue
xfs_info
fails with "contains a mounted filesystem" error when a mounted device name is specified as an argument.
$ xfs_info /dev/mapper/rhel-root
xfs_info: /dev/mapper/rhel-root contains a mounted filesystem
fatal error -- couldn't initialize XFS library
Environment
- Red Hat Enterprise Linux 8
- xfsprogs-4.18.0-3.el8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.