On Thu, Apr 23, 2009 at 09:35, Martin Pitt <martin.pitt@xxxxxxxxxx> wrote: > Kay Sievers [2009-04-23 0:16 +0200]: >> Hmm, so we need to find a more reliable way to check for a media. We >> probably need to ask the kernel with some cdrom ioctl() instead of >> just talking SG_IO here. > > Indeed I was wondering about that; do you plan to use the > CDROM_DISC_STATUS ioctl? I found that quite reliable, and it would > keep the fiddly bits in one place in the kernel. Ok, let's try: http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=d6f0b22d574c6a5e5f3430be3fc619d4b2f46cd5 to check the DRIVE, if we should look for a media at all. If that's still not enough, we will need to try the DISC ioctl. Thanks a lot, Kay -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html