ndctl, test: add a new unit test pfn metadata error clearing
Vishal Verma
maintainerPATCH 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.
Cc Dan Williams <[email protected]>
Signed-off-by Vishal Verma <[email protected]>
--- 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
@@ -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