btrfs: make sure we rescan all devices after unregistering
[xfstests-dev.git] / tests / btrfs / 125
index 41d22d0..d125b11 100755 (executable)
@@ -34,6 +34,7 @@ _cleanup()
 {
        cd /
        rm -f $tmp.*
+       _btrfs_rescan_devices
 }
 
 # get standard environment, filters and checks
@@ -161,6 +162,7 @@ fi
 
 $UMOUNT_PROG $dev2
 _scratch_dev_pool_put
+_btrfs_rescan_devices
 _test_mount
 
 status=0