Skip to contentSkip to conversation

ndctl, rescan-partitions.sh: fix skipping for missing modules

PATCH New Vishal Verma 1 participant 1 message Apr 5, 2018 libnvdimm: non-volatile memory device

lore
Share & tools
lore

Vishal Verma

author maintainer
#0 lore raw

PATCH 1/1 ndctl, rescan-partitions.sh: fix skipping for missing modules

rescan-partitions would fail if the nfit_test module was not found. Fix by moving the modprobe attempt to earlier in the test.

---
 test/rescan-partitions.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/rescan-partitions.sh +1 -1
index 47f0b62..7ae0957 100755
@@ -54,7 +54,6 @@ check_prereq "blockdev"
 
 reset()
 {
-	modprobe nfit_test
 	$ndctl disable-region -b "$bus" all
 	$ndctl zero-labels -b "$bus" all
 	$ndctl enable-region -b "$bus" all
@@ -97,6 +96,7 @@ test_mode()
 	$ndctl destroy-namespace $dev
 }
 
+modprobe nfit_test
 rc=1
 reset
 test_mode "raw"
Signature · 6 lines
2.14.3

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm