On Thu, Dec 15, 2011 at 08:02:40PM +0100, Francesco Cosoleto wrote: > + if (!is_ide_cdrom_or_tape(argv[k])) This function is pretty archaic, we use CDROM_GET_CAPABILITY ioctl to detect cdroms in libblkid/src/probe.c. It would be nice to add blkdev_is_cdrom(char *) blkdev_is_cdrom_fd(int fd) to lkib/blkdev.c and use it for fdisk and libblkid. Volunteer? :-) Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html