]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_info: use findmnt to handle mounted block devices
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 26 Apr 2019 20:41:59 +0000 (15:41 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 26 Apr 2019 20:41:59 +0000 (15:41 -0500)
commitbbb437453182d179002f33a9a10f791514ade832
tree3a25c88369cc93e1530d760bbc100aa52543a94f
parent02d21c44768d5a17a835096961952b52f5db888e
xfs_info: use findmnt to handle mounted block devices

Use findmnt to determine if the passed-in argument is associated with a
mount point, and if so, use spaceman to query the mounted filesystem.
If the user passed in a file, try to find out if it's a loop mounted
live filesystem and if so query the live filesystem.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Bill O'Donnell <billodo@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
debian/control
spaceman/xfs_info.sh