]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
btrfs/291: remove image file after teardown
authorJosef Bacik <josef@toxicpanda.com>
Tue, 5 Mar 2024 18:52:22 +0000 (19:52 +0100)
committerZorro Lang <zlang@kernel.org>
Mon, 11 Mar 2024 04:50:09 +0000 (12:50 +0800)
LVM doesn't like it when you remove the file out from underneath the
backing device.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
tests/btrfs/291

index c594713323994055709eccddc94817d20c9566c4..bfffb845fea7403bb9d46675b92af630289cb6d0 100755 (executable)
@@ -20,9 +20,9 @@ _cleanup()
 {
        cd /
        _log_writes_cleanup &> /dev/null
-       rm -f $img
        $LVM_PROG vgremove -f -y $vgname >>$seqres.full 2>&1
        losetup -d $loop_dev >>$seqres.full 2>&1
+       rm -f $img
        _restore_fsverity_signatures
 }