@@ -228,11 +228,15 @@ static int do_test(struct ndctl_ctx *ctx, struct ndctl_test *test)
ndctl_region_foreach(bus, region) {
if (ndctl_region_get_type(region) != ND_DEVICE_REGION_PMEM)
continue;
+ /*
+ * We have max 4 interleaved dimms in region1.
+ * Hence size needs to be 8M
+ */
ndctl_dimm_foreach_in_region(region, dimm) {
const char *argv[] = {
"__func__", "-v", "-r",
ndctl_region_get_devname(region),
- "-s", "4M", "-m", "raw",
+ "-s", "8M", "-m", "raw",
};
struct ndctl_namespace *ndns;
int count, i;
The minimum size of a namespace should be SUB_SECTION_SIZE * interleaved DIMM count. Update the test to use the correct size. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> --- test/dsm-fail.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)