Re: [PATCH] Fstests: btrfs/011 fix device mounted when tests aborts

2018-01-18 Thread Anand Jain
On 01/17/2018 04:10 AM, Liu Bo wrote: 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

[PATCH] Fstests: btrfs/011 fix device mounted when tests aborts

2018-01-16 Thread Liu Bo
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