Fstests: btrfs/011 fix device mounted when tests aborts
PATCH 1/1 Fstests: btrfs/011 fix device mounted when tests aborts
One of btrfs tests, btrfs/011, uses SCRATCH_DEV_POOL and puts a non-SCRATCH_DEV device as the first one when doing mkfs, and this makes _require_scratch{_nocheck} confused since it checks mount point with SCRATCH_DEV only.
This adds _scratch_umount to cleanup() to umount SCRATCH_MNT by 011 itself.
Signed-off-by Liu Bo <[email protected]>
--- tests/btrfs/011 | 1 + 1 file changed, 1 insertion(+)
tests/btrfs/011 +1 -0
@@ -51,6 +51,7 @@ _cleanup() fi wait rm -f $tmp.tmp + _scratch_unmount > /dev/null 2>&1 } trap "_cleanup; exit \$status" 0 1 2 3 15
Signature · 1 line
2.5.0
Quoted 9 lines · Liu Bo
One of btrfs tests, btrfs/011, uses
SCRATCH_DEV_POOLand puts a non-SCRATCH_DEV device as the first one when doing mkfs, and this makes _require_scratch{_nocheck} confused since it checks mount point withSCRATCH_DEVonly.This adds
_scratch_umounttocleanup()to umountSCRATCH_MNTby 011 itself.Signed-off-by Liu Bo <[email protected]>
Reviewed-by Anand Jain <[email protected]>
Tested-by Anand Jain <[email protected]>
Thanks, Anand
Quoted 17 lines
--- tests/btrfs/011 | 1 + 1 file changed, 1 insertion(+)tests/btrfs/011 +1
-0@@ -51,6 +51,7 @@ _cleanup() fi wait rm -f $tmp.tmp + _scratch_unmount > /dev/null 2>&1 } trap "_cleanup; exit \$status" 0 1 2 3 15