@@ -80,7 +80,7 @@ include::xable-region-options.txt[]
-m::
--mode=::
- Filter listing by the mode ('raw', 'memory', 'sector' or 'dax')
+ Filter listing by the mode ('raw', 'fsdax', 'sector' or 'devdax')
of the namespace(s).
-B::
@@ -78,12 +78,16 @@ static enum ndctl_namespace_mode mode_to_type(const char *mode)
if (strcasecmp(param.mode, "memory") == 0)
return NDCTL_NS_MODE_MEMORY;
+ else if (strcasecmp(param.mode, "fsdax") == 0)
+ return NDCTL_NS_MODE_MEMORY;
else if (strcasecmp(param.mode, "sector") == 0)
return NDCTL_NS_MODE_SAFE;
else if (strcasecmp(param.mode, "safe") == 0)
return NDCTL_NS_MODE_SAFE;
else if (strcasecmp(param.mode, "dax") == 0)
return NDCTL_NS_MODE_DAX;
+ else if (strcasecmp(param.mode, "devdax") == 0)
+ return NDCTL_NS_MODE_DAX;
else if (strcasecmp(param.mode, "raw") == 0)
return NDCTL_NS_MODE_RAW;
Allow filtering namespaces by the same mode names used for create-namespace. Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- Documentation/ndctl/ndctl-list.txt | 2 +- ndctl/list.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-)