提交 f7ec8368 编写于 作者: D Dan Williams

tools/testing/nvdimm: fix return code for unimplemented commands

The implementation for the new "DIMM Flags" DSM relies on the -ENOTTY
return code to indicate that the flags are unimplimented and to fall
back to a safe default.  As is the -ENXIO error code erroneoously
indicates to fail enabling a BLK region.
Signed-off-by: NDan Williams <dan.j.williams@intel.com>
上级 b1b2e623
...@@ -155,7 +155,7 @@ static int nfit_test_ctl(struct nvdimm_bus_descriptor *nd_desc, ...@@ -155,7 +155,7 @@ static int nfit_test_ctl(struct nvdimm_bus_descriptor *nd_desc,
int i, rc; int i, rc;
if (!nfit_mem || !test_bit(cmd, &nfit_mem->dsm_mask)) if (!nfit_mem || !test_bit(cmd, &nfit_mem->dsm_mask))
return -ENXIO; return -ENOTTY;
/* lookup label space for the given dimm */ /* lookup label space for the given dimm */
for (i = 0; i < ARRAY_SIZE(handle); i++) for (i = 0; i < ARRAY_SIZE(handle); i++)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册