Thanks for the patch. It should be applied in 96a1030c now. Please double
check though.
On Sun, Jan 23, 2022 at 11:46 AM Lukas Prediger <lumip@lumip.de> wrote:
Here's a patch that I posted also to savannah.gnu.org a couple of days
ago. However, I'm not sure if that is currently actively checked, so I
wanted to take the opportunity of posting to this mailing list as well:
Previously get_media_changed under linux only indicated a media change
for one of all concurrently requesting processes due to a shortcoming of
the kernels CDROM_MEDIA_CHANGED ioctl request.
The new CDROM_TIMED_MEDIA_CHANGE ioctl introduced with Linux v5.16
now allows media change detection to work robustly for multiple processes.
This patch adapts libcdio to use this new ioctl request if compiled
against kernel v5.16 or newer. It retains the old behavior for older
kernels.
Link to the patch posting on savannah.gnu.org:
https://savannah.gnu.org/patch/index.php?10169
Best,
Lukas