[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libcdio-devel] [PATCH] Multiprocess compatible get_media_changed_li

From: Lukas Prediger
Subject: Re: [Libcdio-devel] [PATCH] Multiprocess compatible get_media_changed_linux using the new CDROM_TIMED_MEDIA_CHANGED ioctl
Date: Sat, 29 Jan 2022 12:46:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

I had some time to test now and everything appears to be fine. Many thanks!

On 23.01.22 23:17, Rocky Bernstein wrote:
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 <> wrote:

Here's a patch that I posted also to 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

Link to the patch posting on


reply via email to

[Prev in Thread] Current Thread [Next in Thread]