xfs/449: test xfs_info on a mounted block device
authorZorro Lang <zlang@redhat.com>
Sat, 6 Jul 2019 14:52:17 +0000 (22:52 +0800)
committerEryu Guan <guaneryu@gmail.com>
Fri, 12 Jul 2019 05:25:24 +0000 (13:25 +0800)
commit7ef6a36702b253808e629e90e6677d3b86a0a3ea
tree1cdcd0c0c1b848fb1ff86cde44fde8ce735fa01b
parenta4c1696f8c4b29dc46b3afbe71d34471d0c37e2f
xfs/449: test xfs_info on a mounted block device

There was a bug, xfs_info fails on a mounted block device:

  # xfs_info /dev/mapper/testdev
  xfs_info: /dev/mapper/testdev contains a mounted filesystem

  fatal error -- couldn't initialize XFS library

  xfsprogs has fixed it by:

    bbb43745 xfs_info: use findmnt to handle mounted block devices

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/449