Skip to contentSkip to conversation

ndctl, test: add a new unit test pfn metadata error clearing

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

lore
Share & tools
lore

Vishal Verma

author maintainer
#0 lore raw

PATCH 1/1 ndctl, test: add a new unit test pfn metadata error clearing

The pfn driver lacked a way to clear badblocks in the volatile struct page area, but this is expected to be fixed for v4.20.
Add a unit test that creates an fsdax namespace, forces it to raw mode, injects errors to the metadata area, and converts it back to fsdax.

For a kernel with the error clearing improvements, this will clear the injected errors, but if the kernel changes are missing, the errors will stay intact. At this point, convert the namespace back to raw mode and check for the presence of badblocks.

---
 test/Makefile.am        |  3 +-
 test/pfn-meta-errors.sh | 74 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+), 1 deletion(-)
 create mode 100755 test/pfn-meta-errors.sh
test/Makefile.am +2 -1
index 50bb2e4..ebdd23f 100644
@@ -24,7 +24,8 @@ TESTS =\
 	rescan-partitions.sh \
 	inject-smart.sh \
 	monitor.sh \
-	max_available_extent_ns.sh
+	max_available_extent_ns.sh \
+	pfn-meta-errors.sh
 
 check_PROGRAMS =\
 	libndctl \
test/pfn-meta-errors.sh new file +74 -0

74 lines not on this page · raw message

Signature · 6 lines
2.14.4

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