From d0516312ff8dbc7a3f6769606118490bab5b03e3 Mon Sep 17 00:00:00 2001 From: Rui Chang Date: Tue, 28 Feb 2023 17:34:29 +0800 Subject: [PATCH] nvmf: add copy command support in get log page add copy command support in get log page and idenfity tool Change-Id: I8771ffb193fc80ffc12f068993005e5702f41a0d Signed-off-by: Rui Chang Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17162 Reviewed-by: Shuhei Matsumoto Tested-by: SPDK CI Jenkins Reviewed-by: Konrad Sztyber Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris --- examples/nvme/identify/identify.c | 2 ++ lib/nvmf/ctrlr.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/nvme/identify/identify.c b/examples/nvme/identify/identify.c index 4435c90c6..0a801a86b 100644 --- a/examples/nvme/identify/identify.c +++ b/examples/nvme/identify/identify.c @@ -1574,6 +1574,8 @@ io_opc_name(uint8_t opc) return "Reservation Acquire"; case SPDK_NVME_OPC_RESERVATION_RELEASE: return "Reservation Release"; + case SPDK_NVME_OPC_COPY: + return "Copy"; default: if (opc >= 0x80) { return "Vendor specific"; diff --git a/lib/nvmf/ctrlr.c b/lib/nvmf/ctrlr.c index 70ed33e29..0000d1679 100644 --- a/lib/nvmf/ctrlr.c +++ b/lib/nvmf/ctrlr.c @@ -2404,6 +2404,8 @@ static const struct spdk_nvme_cmds_and_effect_log_page g_cmds_and_effect_log_pag [SPDK_NVME_OPC_ZONE_MGMT_SEND] = {1, 1, 0, 0, 0, 0, 0, 0}, /* ZONE MANAGEMENT RECEIVE */ [SPDK_NVME_OPC_ZONE_MGMT_RECV] = {1, 0, 0, 0, 0, 0, 0, 0}, + /* COPY */ + [SPDK_NVME_OPC_COPY] = {1, 1, 0, 0, 0, 0, 0, 0}, }, };