[PATCH 0/4] add ro state control function for nvdimm drivers

2021-10-27 Thread Huaisheng Ye
libndctl failed to pass for the reason of writing pmem disk when running ndctl testing. Here is the error message below, namespace6.0: failed to write /dev/pmem6 check_namespaces: namespace6.0 validate_bdev failed ndctl-test1 failed: -6 Commit

[PATCH 1/4] libnvdimm: add a ro state control function for nvdimm

2021-10-27 Thread Huaisheng Ye
libndctl failed to pass when writing pmem disk. Here is the error message below, namespace6.0: failed to write /dev/pmem6 check_namespaces: namespace6.0 validate_bdev failed ndctl-test1 failed: -6 Commit 98f49b63e84d4ee1a5c327d0b5f4e8699f6c70fe removes set_device_ro and

[PATCH 2/4] libnvdimm/pmem: implement ->set_read_only to hook into BLKROSET processing

2021-10-27 Thread Huaisheng Ye
Implement the ->set_read_only method for nd_pmem. Signed-off-by: Huaisheng Ye --- drivers/nvdimm/pmem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c index ef4950f80832..38ede1f44f5f 100644 --- a/drivers/nvdimm/pmem.c +++

[PATCH 3/4] libnvdimm/blk: implement ->set_read_only to hook into BLKROSET processing

2021-10-27 Thread Huaisheng Ye
Implement the ->set_read_only method for nd_blk. Signed-off-by: Huaisheng Ye --- drivers/nvdimm/blk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvdimm/blk.c b/drivers/nvdimm/blk.c index 088d3dd6f6fa..9d76980ebff7 100644 --- a/drivers/nvdimm/blk.c +++ b/drivers/nvdimm/blk.c @@

[PATCH 4/4] libnvdimm/btt: implement ->set_read_only to hook into BLKROSET processing

2021-10-27 Thread Huaisheng Ye
Implement the ->set_read_only method for nd_btt. Signed-off-by: Huaisheng Ye --- drivers/nvdimm/btt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvdimm/btt.c b/drivers/nvdimm/btt.c index 92dec4952297..91fcdac7858f 100644 --- a/drivers/nvdimm/btt.c +++ b/drivers/nvdimm/btt.c @@