btrfs: make sure we rescan all devices after unregistering
[xfstests-dev.git] / tests / btrfs / 124
index c9729cb4c9ba21fde18d0ad8948db6197240699e..4588264c35a826a771dc1827bbb0d28868cf8b77 100755 (executable)
@@ -35,6 +35,7 @@ _cleanup()
 {
        cd /
        rm -f $tmp.*
+       _btrfs_rescan_devices
 }
 
 # get standard environment, filters and checks
@@ -144,6 +145,7 @@ fi
 
 $UMOUNT_PROG $dev2
 _scratch_dev_pool_put
+_btrfs_rescan_devices
 _test_mount
 
 status=0