[PATCH] xfs/073: destroy loop device when mount fails
Christoph Hellwig <[email protected]>
| Newsgroups | org.kernel.vger.linux-xfs,org.kernel.vger.fstests |
|---|---|
| Message-ID | <[email protected]> |
Otherwise the failure will leave a dangling loop device around and prevent unmounting of $TEST_DIR and thus various cascading later failures. Signed-off-by: Christoph Hellwig <[email protected]> --- tests/xfs/073 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/xfs/073 b/tests/xfs/073 index 2274079ef43b..057d1447639a 100755 --- a/tests/xfs/073 +++ b/tests/xfs/073 @@ -74,6 +74,7 @@ _verify_copy() _mount -o nouuid $loop_dev1 $target_dir if [ $? -ne 0 ]; then echo mount failed - evil! + _destroy_loop_device $loop_dev1 return fi fi -- 2.53.0