Open martinetd opened 1 month ago
Hello, thank you for the bug report.
The issue is that this is fair share specific and the initialization code doesn't know if we are using this algorithm or not. So I made the initialization of ld_technology optional. If it fails, we shouldn't prevent the LRS from working since we may not even use this element without the fair share. But this should definitely be fixed. I'll have to think about a proper way of handling this. Maybe it's ok to fail even if we don't use the fair share.
I think there's a problem with init not failing early when the model is not found?
Trying to format a tape with a bad config segfaults as follow:
The actual crash is because
ld_technology
is NULL insort_devices_by_technology_cmp()
I think we should fail any such drives early e.g. makelrs_dev_technology()
fail, but didn't take the time to dig into this yet as it was more of a configuration problem.