Re: [PATCH v4 5/8] nvme: get list of namespace descriptors

2017-06-06 Thread Sagi Grimberg
On 05/06/17 08:38, Christoph Hellwig wrote: + } + len = NVME_NIDT_UUID_LEN; + memcpy(ns->uuid, data + pos + sizeof(*cur), len); + break; + default: +

Re: [PATCH v4 5/8] nvme: get list of namespace descriptors

2017-06-06 Thread Sagi Grimberg
On 05/06/17 08:38, Christoph Hellwig wrote: + } + len = NVME_NIDT_UUID_LEN; + memcpy(ns->uuid, data + pos + sizeof(*cur), len); + break; + default: +

Re: [PATCH v4 5/8] nvme: get list of namespace descriptors

2017-06-06 Thread Hannes Reinecke
On 06/04/2017 12:36 PM, Johannes Thumshirn wrote: > If a target identifies itself as NVMe 1.3 compliant, try to get the > list of Namespace Identification Descriptors and populate the UUID, > NGUID and EUI64 fileds in the NVMe namespace structure with these > values. > > Signed-off-by: Johannes

Re: [PATCH v4 5/8] nvme: get list of namespace descriptors

2017-06-06 Thread Hannes Reinecke
On 06/04/2017 12:36 PM, Johannes Thumshirn wrote: > If a target identifies itself as NVMe 1.3 compliant, try to get the > list of Namespace Identification Descriptors and populate the UUID, > NGUID and EUI64 fileds in the NVMe namespace structure with these > values. > > Signed-off-by: Johannes

Re: [PATCH v4 5/8] nvme: get list of namespace descriptors

2017-06-04 Thread Christoph Hellwig
> + } > + len = NVME_NIDT_UUID_LEN; > + memcpy(ns->uuid, data + pos + sizeof(*cur), len); > + break; > + default: > + dev_warn(ns->ctrl->dev, > + "Invalid

Re: [PATCH v4 5/8] nvme: get list of namespace descriptors

2017-06-04 Thread Christoph Hellwig
> + } > + len = NVME_NIDT_UUID_LEN; > + memcpy(ns->uuid, data + pos + sizeof(*cur), len); > + break; > + default: > + dev_warn(ns->ctrl->dev, > + "Invalid

Re: [PATCH v4 5/8] nvme: get list of namespace descriptors

2017-06-04 Thread Sagi Grimberg
On 04/06/17 13:36, Johannes Thumshirn wrote: If a target identifies itself as NVMe 1.3 compliant, try to get the list of Namespace Identification Descriptors and populate the UUID, NGUID and EUI64 fileds in the NVMe namespace structure with these values. Signed-off-by: Johannes Thumshirn

Re: [PATCH v4 5/8] nvme: get list of namespace descriptors

2017-06-04 Thread Sagi Grimberg
On 04/06/17 13:36, Johannes Thumshirn wrote: If a target identifies itself as NVMe 1.3 compliant, try to get the list of Namespace Identification Descriptors and populate the UUID, NGUID and EUI64 fileds in the NVMe namespace structure with these values. Signed-off-by: Johannes Thumshirn ---

[PATCH v4 5/8] nvme: get list of namespace descriptors

2017-06-04 Thread Johannes Thumshirn
If a target identifies itself as NVMe 1.3 compliant, try to get the list of Namespace Identification Descriptors and populate the UUID, NGUID and EUI64 fileds in the NVMe namespace structure with these values. Signed-off-by: Johannes Thumshirn --- drivers/nvme/host/core.c |

[PATCH v4 5/8] nvme: get list of namespace descriptors

2017-06-04 Thread Johannes Thumshirn
If a target identifies itself as NVMe 1.3 compliant, try to get the list of Namespace Identification Descriptors and populate the UUID, NGUID and EUI64 fileds in the NVMe namespace structure with these values. Signed-off-by: Johannes Thumshirn --- drivers/nvme/host/core.c | 87