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
- Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.