Blame SOURCES/ndctl-rhel7-fix-make-check.patch

c21584
diff --git a/test/core.c b/test/core.c
c21584
index b9e3bbf..4b36b2d 100644
c21584
--- a/test/core.c
c21584
+++ b/test/core.c
c21584
@@ -129,8 +129,6 @@ int nfit_test_init(struct kmod_ctx **ctx, struct kmod_module **mod,
c21584
 		"nfit",
c21584
 		"device_dax",
c21584
 		"dax_pmem",
c21584
-		"dax_pmem_core",
c21584
-		"dax_pmem_compat",
c21584
 		"libnvdimm",
c21584
 		"nd_blk",
c21584
 		"nd_btt",
c21584
diff --git a/test/device-dax.c b/test/device-dax.c
c21584
index b19c1ed..d85862b 100644
c21584
--- a/test/device-dax.c
c21584
+++ b/test/device-dax.c
c21584
@@ -166,6 +166,7 @@ static int __test_device_dax(unsigned long align, int loglevel,
c21584
 	if (!ndctl_test_attempt(test, KERNEL_VERSION(4, 7, 0)))
c21584
 		return 77;
c21584
 
c21584
+#if 0
c21584
 	/* setup up fsdax mode pmem device and seed with verification data */
c21584
 	rc = setup_pmem_fsdax_mode(ndns, align);
c21584
 	if (rc < 0 || !(pfn = ndctl_namespace_get_pfn(ndns))) {
c21584
@@ -199,7 +200,7 @@ static int __test_device_dax(unsigned long align, int loglevel,
c21584
 	}
c21584
 	fsync(fd);
c21584
 	close(fd);
c21584
-
c21584
+#endif
c21584
 	/* switch the namespace to device-dax mode and verify data via mmap */
c21584
 	rc = setup_device_dax(ndns, align);
c21584
 	if (rc < 0) {
c21584
@@ -219,6 +220,7 @@ static int __test_device_dax(unsigned long align, int loglevel,
c21584
 	}
c21584
 
c21584
 	sprintf(path, "/dev/%s", daxctl_dev_get_devname(dev));
c21584
+#if 0
c21584
 	fd = open(path, O_RDONLY);
c21584
 	if (fd < 0) {
c21584
 		fprintf(stderr, "%s: failed to open(O_RDONLY) device-dax instance\n",
c21584
@@ -246,7 +248,7 @@ static int __test_device_dax(unsigned long align, int loglevel,
c21584
 
c21584
 	close(fd);
c21584
 	munmap(buf, VERIFY_SIZE(align));
c21584
-
c21584
+#endif
c21584
 	/*
c21584
 	 * Prior to 4.8-final these tests cause crashes, or are
c21584
 	 * otherwise not supported.
c21584
@@ -262,6 +264,7 @@ static int __test_device_dax(unsigned long align, int loglevel,
c21584
 			rc = -ENXIO;
c21584
 			goto out;
c21584
 		}
c21584
+
c21584
 		rc = test_dax_directio(fd, align, NULL, 0);
c21584
 		if (rc) {
c21584
 			fprintf(stderr, "%s: failed dax direct-i/o\n",
c21584
diff --git a/test/libndctl.c b/test/libndctl.c
c21584
index 02bb9cc..2a20941 100644
c21584
--- a/test/libndctl.c
c21584
+++ b/test/libndctl.c
c21584
@@ -160,9 +160,9 @@ static struct btt {
c21584
 	int enabled;
c21584
 	uuid_t uuid;
c21584
 	int num_sector_sizes;
c21584
-	unsigned int sector_sizes[7];
c21584
+	unsigned int sector_sizes[2];
c21584
 } default_btt = {
c21584
-	0, { 0, }, 7, { 512, 520, 528, 4096, 4104, 4160, 4224, },
c21584
+	0, { 0, }, 2, { 512, 4096, },
c21584
 };
c21584
 
c21584
 struct pfn {
c21584
@@ -214,8 +214,8 @@ static struct btt btt_settings = {
c21584
 	.uuid = {  0,  1,  2,  3,  4,  5,  6,  7,
c21584
 		   8, 9,  10, 11, 12, 13, 14, 15
c21584
 	},
c21584
-	.num_sector_sizes = 7,
c21584
-	.sector_sizes =  { 512, 520, 528, 4096, 4104, 4160, 4224, },
c21584
+	.num_sector_sizes = 2,
c21584
+	.sector_sizes =  { 512, 4096, },
c21584
 };
c21584
 
c21584
 static struct pfn pfn_settings = {
c21584
@@ -250,7 +250,7 @@ struct namespace {
c21584
 };
c21584
 
c21584
 static uuid_t null_uuid;
c21584
-static unsigned long blk_sector_sizes[] = { 512, 520, 528, 4096, 4104, 4160, 4224, };
c21584
+static unsigned long blk_sector_sizes[] = { 512, 4096, };
c21584
 static unsigned long pmem_sector_sizes[] = { 512, 4096 };
c21584
 static unsigned long io_sector_sizes[] = { 0 };
c21584