diff --git a/include/spdk/nvme_spec.h b/include/spdk/nvme_spec.h index fbb4d7448b..f06931abf9 100644 --- a/include/spdk/nvme_spec.h +++ b/include/spdk/nvme_spec.h @@ -654,7 +654,7 @@ enum spdk_nvme_command_specific_status_code { SPDK_NVME_SC_CONFLICTING_ATTRIBUTES = 0x80, SPDK_NVME_SC_INVALID_PROTECTION_INFO = 0x81, - SPDK_NVME_SC_ATTEMPTED_WRITE_TO_RO_PAGE = 0x82, + SPDK_NVME_SC_ATTEMPTED_WRITE_TO_RO_RANGE = 0x82, }; /** diff --git a/lib/bdev/scsi_nvme.c b/lib/bdev/scsi_nvme.c index 385b9036fe..8806161457 100644 --- a/lib/bdev/scsi_nvme.c +++ b/lib/bdev/scsi_nvme.c @@ -158,7 +158,7 @@ spdk_scsi_nvme_translate(const struct spdk_bdev_io *bdev_io, int *sc, int *sk, *asc = SPDK_SCSI_ASC_INVALID_FIELD_IN_CDB; *ascq = SPDK_SCSI_ASCQ_CAUSE_NOT_REPORTABLE; break; - case SPDK_NVME_SC_ATTEMPTED_WRITE_TO_RO_PAGE: + case SPDK_NVME_SC_ATTEMPTED_WRITE_TO_RO_RANGE: *sc = SPDK_SCSI_STATUS_CHECK_CONDITION; *sk = SPDK_SCSI_SENSE_DATA_PROTECT; *asc = SPDK_SCSI_ASC_WRITE_PROTECTED; diff --git a/lib/nvme/nvme_qpair.c b/lib/nvme/nvme_qpair.c index 97eb23de95..261e341530 100644 --- a/lib/nvme/nvme_qpair.c +++ b/lib/nvme/nvme_qpair.c @@ -239,7 +239,7 @@ static const struct nvme_string command_specific_status[] = { { SPDK_NVME_SC_INVALID_RESOURCE_ID, "INVALID RESOURCE IDENTIFIER" }, { SPDK_NVME_SC_CONFLICTING_ATTRIBUTES, "CONFLICTING ATTRIBUTES" }, { SPDK_NVME_SC_INVALID_PROTECTION_INFO, "INVALID PROTECTION INFO" }, - { SPDK_NVME_SC_ATTEMPTED_WRITE_TO_RO_PAGE, "WRITE TO RO PAGE" }, + { SPDK_NVME_SC_ATTEMPTED_WRITE_TO_RO_RANGE, "WRITE TO RO RANGE" }, { 0xFFFF, "COMMAND SPECIFIC" } };