test/btt-errors.sh: unmount the namespace before disabling
Vishal Verma
maintainerPATCH 1/1 test/btt-errors.sh: unmount the namespace before disabling
When cleaning up after the first part of the test, the disable-region and subsequent zero-labels would fail if the namespace was mounted. Fix this by unmounting the namespace before trying to disable it.
Cc Dan Williams <[email protected]>
Signed-off-by Vishal Verma <[email protected]>
--- test/btt-errors.sh | 1 + 1 file changed, 1 insertion(+)
test/btt-errors.sh +1 -0
@@ -146,6 +146,7 @@ dd if=$MNT/$FILE of=/dev/null iflag=direct bs=4096 count=1 ## ensure we get an EIO for errors in namespace metadata # reset everything to get a clean log +if grep -q "$MNT" /proc/mounts; then umount $MNT; fi $NDCTL disable-region -b "$BUS" all $NDCTL zero-labels -b "$BUS" all $NDCTL enable-region -b "$BUS" all
Signature · 6 lines
2.14.3 _______________________________________________ Linux-nvdimm mailing list [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm