tools/testing/nvdimm: fix return code for unimplemented commands
authorDan Williams <dan.j.williams@intel.com>
Fri, 10 Jul 2015 17:06:12 +0000 (11:06 -0600)
committerDan Williams <dan.j.williams@intel.com>
Fri, 10 Jul 2015 17:50:50 +0000 (13:50 -0400)
commitf7ec83684af020c961d7fab801f8e3ef7ce5de33
tree23abc99f7955762e0924d7d9cea83f20bb0cb706
parentb1b2e6235a44174151fa3bb22657f74972635618
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: Dan Williams <dan.j.williams@intel.com>
tools/testing/nvdimm/test/nfit.c