[PATCH] nvme-cli: attach ns to local controller if none specified
Keith Busch
kbusch at kernel.org
Mon Mar 31 14:11:19 PDT 2025
On Mon, Mar 31, 2025 at 12:08:43PM -0700, Keith Busch wrote:
> + } else {
> + struct nvme_id_ctrl ctrl = { 0 };
> +
> + if (nvme_cli_identify_ctrl(dev, &ctrl)) {
> + perror("identify-ctrl");
> + return -errno;
> + }
> + cntlist->identifier[0] = ctrl.cntlid;
This is not a zero-based-value, so this will need a
cntlist->num = cpu_to_le16(1);
in this section.
More information about the Linux-nvme
mailing list