]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: don't close mnt_fd when mnt_fd open fails
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 28 Mar 2019 23:05:01 +0000 (18:05 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 28 Mar 2019 23:05:01 +0000 (18:05 -0500)
commitaa26c33ced2d85e02c130882061228f18440b83f
treedfb2d217c82307000e037b9dffb2f8aa256be961
parentf1bb16965da60b1304aa6d7a78509da83b83c5f1
xfs_scrub: don't close mnt_fd when mnt_fd open fails

If we fail to open the mountpoint during phase 1 of scrub, don't bother
trying to close the file descriptor since it's silly to spray error
messages about that.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
scrub/phase1.c