diff options
author | Omri Mann <omri@excelero.com> | 2017-08-30 15:22:59 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-08-30 15:05:18 +0200 |
commit | 28dd5cf70aaac2a12a16847ae0a978f0b0575194 (patch) | |
tree | d8511097ef79536fa8f971e86ecb3c9f84d9d27e /drivers/nvme/target/fabrics-cmd.c | |
parent | 63263d60e0f9f37bfd5e6a1e83a62f0e62fc459f (diff) |
nvmet: add support for reporting the host identifier
And fix the Get/Set Log Page implementation to take all 8 bits of the
feature identifier into account.
Signed-off-by: Omri Mann <omri@excelero.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
[hch: used the UUID API, updated changelog]
Diffstat (limited to 'drivers/nvme/target/fabrics-cmd.c')
-rw-r--r-- | drivers/nvme/target/fabrics-cmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/target/fabrics-cmd.c b/drivers/nvme/target/fabrics-cmd.c index 3cc17269504b..859a66725291 100644 --- a/drivers/nvme/target/fabrics-cmd.c +++ b/drivers/nvme/target/fabrics-cmd.c @@ -154,6 +154,7 @@ static void nvmet_execute_admin_connect(struct nvmet_req *req) le32_to_cpu(c->kato), &ctrl); if (status) goto out; + uuid_copy(&ctrl->hostid, &d->hostid); status = nvmet_install_queue(ctrl, req); if (status) { |