diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-10-06 23:13:15 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-10-07 09:20:53 -0700 |
commit | 0e3b0d123c8fd5c42f364aea3ab663b1f18dad39 (patch) | |
tree | 08e6a8ed499310bba97b8a3b96d33428d70b0bc8 /include/linux/nd.h | |
parent | bd4cd745b3b412ac93227640e3b337962f41d932 (diff) | |
download | linux-0e3b0d123c8fd5c42f364aea3ab663b1f18dad39.tar.gz linux-0e3b0d123c8fd5c42f364aea3ab663b1f18dad39.tar.bz2 linux-0e3b0d123c8fd5c42f364aea3ab663b1f18dad39.zip |
libnvdimm, namespace: allow multiple pmem-namespaces per region at scan time
If label scanning finds multiple valid pmem namespaces allow them to be
surfaced rather than fail namespace scanning. Support for creating
multiple namespaces per region is saved for a later patch.
Note that this adds some new error messages to clarify which of the pmem
namespaces in the set are potentially impacted by invalid labels.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/nd.h')
-rw-r--r-- | include/linux/nd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nd.h b/include/linux/nd.h index f1ea426d6a5e..ddcc7788305c 100644 --- a/include/linux/nd.h +++ b/include/linux/nd.h @@ -77,11 +77,13 @@ struct nd_namespace_io { * @nsio: device and system physical address range to drive * @alt_name: namespace name supplied in the dimm label * @uuid: namespace name supplied in the dimm label + * @id: ida allocated id */ struct nd_namespace_pmem { struct nd_namespace_io nsio; char *alt_name; u8 *uuid; + int id; }; /** |