[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libcdio-devel] [PATCH] Multiprocess compatible get_media_changed_linux
From: |
Lukas Prediger |
Subject: |
[Libcdio-devel] [PATCH] Multiprocess compatible get_media_changed_linux using the new CDROM_TIMED_MEDIA_CHANGED ioctl |
Date: |
Sun, 23 Jan 2022 18:43:22 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
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
0001-Multiprocess-robust-cd-change-detection.patch
Description: Text Data
- [Libcdio-devel] [PATCH] Multiprocess compatible get_media_changed_linux using the new CDROM_TIMED_MEDIA_CHANGED ioctl,
Lukas Prediger <=