Closed vt-alt closed 9 months ago
I did simple smoke test for our CI and found that ublk del --all always exits with a failure (exitcode=237).
ublk del --all
Looking at the code I think this is the casue:
cmd_dev_del iterates over MAX_NR_UBLK_DEVS number of devices:
cmd_dev_del
MAX_NR_UBLK_DEVS
for (i = 0; i < MAX_NR_UBLK_DEVS; i++) ret = __cmd_dev_del(i, true);
-19
Fixed in bac8d72 ("ublksrv_tgt: don't return error if trying to delete unexisted device").
Thanks for the report.
Thanks!
I did simple smoke test for our CI and found that
ublk del --all
always exits with a failure (exitcode=237).Looking at the code I think this is the casue:
cmd_dev_del
iterates overMAX_NR_UBLK_DEVS
number of devices:-19
(that becomes exitcode 237).