nvme: zns: include zone index in invalid zone type error

Include the zone index when reporting an invalid zone type during zone
descriptor parsing.

Signed-off-by: Xixin Liu <liuxixin@kylinos.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
Xixin Liu 2026-06-25 10:00:00 +08:00 committed by Keith Busch
parent 09c9062d4f
commit 3456b52552

View File

@ -155,7 +155,8 @@ static int nvme_zone_parse_entry(struct nvme_ns *ns,
struct blk_zone zone = { };
if ((entry->zt & 0xf) != NVME_ZONE_TYPE_SEQWRITE_REQ) {
dev_err(ns->ctrl->device, "invalid zone type %#x\n", entry->zt);
dev_err(ns->ctrl->device, "invalid zone type %#x at zone %u\n",
entry->zt, idx);
return -EINVAL;
}