Hello Kay, 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. Thanks! Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) -- 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