Skip to content
Commit 130c24b5 authored by Guan Junxiong's avatar Guan Junxiong Committed by Christoph Hellwig
Browse files

nvmet: fix the return error code of target if host is not allowed



nvmf target shall return NVME_SC_CONNECT_INVALID_HOST instead of
the gereal code INVALID_PARAM when the given host nqn is not allowed
to connect. Refer to the 2.2.1 section of the NVMe over Fabrics Spec.

Signed-off-by: default avatarGuan Junxiong <guanjunxiong@huawei.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 1645d503
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment