case NVME_SC_LBA_RANGE: return "LBA_RANGE";
case NVME_SC_CAP_EXCEEDED: return "CAP_EXCEEDED";
case NVME_SC_NS_NOT_READY: return "NS_NOT_READY";
+ case NVME_SC_RESERVATION_CONFLICT: return "RESERVATION_CONFLICT";
case NVME_SC_CQ_INVALID: return "CQ_INVALID";
case NVME_SC_QID_INVALID: return "QID_INVALID";
case NVME_SC_QUEUE_SIZE: return "QUEUE_SIZE";
if (err < 0)
perror("reservation acquire");
else if (err != 0)
- fprintf(stderr, "NVME IO command error:%04x\n", err);
+ fprintf(stderr, "NVME IO command error:%s(%x)\n", nvme_status_to_string(err), err);
else
printf("NVME Reservation Acquire success\n");
return err;
if (err < 0)
perror("reservation register");
else if (err != 0)
- fprintf(stderr, "NVME IO command error:%04x\n", err);
+ fprintf(stderr, "NVME IO command error:%s(%x)\n", nvme_status_to_string(err), err);
else
printf("NVME Reservation success\n");
return err;
if (err < 0)
perror("reservation release");
else if (err != 0)
- fprintf(stderr, "NVME IO command error:%04x\n", err);
+ fprintf(stderr, "NVME IO command error:%s(%x)\n", nvme_status_to_string(err), err);
else
printf("NVME Reservation Release success\n");
return err;