btrfs: make sure we rescan all devices after unregistering
[xfstests-dev.git] / tests / btrfs / 225
index 730d964..b745b53 100755 (executable)
@@ -25,6 +25,7 @@ _cleanup()
 {
        cd /
        rm -f $tmp.*
+       _btrfs_rescan_devices
 }
 
 # get standard environment, filters and checks
@@ -40,6 +41,7 @@ rm -f $seqres.full
 _supported_fs btrfs
 _require_test
 _require_scratch_dev_pool 2
+_require_btrfs_forget_or_module_loadable
 
 _scratch_dev_pool_get 2
 
@@ -76,6 +78,7 @@ od -x $SCRATCH_MNT/foo
 od -x $SCRATCH_MNT/bar
 
 _scratch_dev_pool_put
+_btrfs_rescan_devices
 
 # success, all done
 status=0