nvmf: return Invalid Log Page for unsupported pages
Change-Id: I27cbdf06caf66e5a23ec2b7e836915f2e386cea2 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
7a06e80143
commit
b2678a5246
@ -165,7 +165,8 @@ nvmf_virtual_ctrlr_get_log_page(struct spdk_nvmf_request *req)
|
|||||||
return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
|
return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
|
||||||
default:
|
default:
|
||||||
SPDK_ERRLOG("Unsupported Get Log Page 0x%02X\n", lid);
|
SPDK_ERRLOG("Unsupported Get Log Page 0x%02X\n", lid);
|
||||||
response->status.sc = SPDK_NVME_SC_INVALID_FIELD;
|
response->status.sct = SPDK_NVME_SCT_COMMAND_SPECIFIC;
|
||||||
|
response->status.sc = SPDK_NVME_SC_INVALID_LOG_PAGE;
|
||||||
return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
|
return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user