Systemd/extras/cdrom_id
Jan Drzewiecki 1ef6c9e9f0 cdrom_id: Fix detection of reblanked DVD+RW and DVD-RAM
Once formatted, DVD+RW and DVD-RAM discs are always reported "complete" by the
drive. Check the if the Volume Descriptor or Volume Descriptor Anchor sectors
are empty, and if so, set the status to blank. If the disc is unformatted the
blank status is maintained and no reads are issued. If the disc is formatted and
read command fails, the status remains set to complete to avoid accidental
blanking.

Bug-Ubuntu: https://launchpad.net/bugs/581925

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-08 17:47:08 +02:00
..
.gitignore extras: ignore built and generated files 2007-11-08 00:13:40 +01:00
60-cdrom_id.rules cdrom_id: only mark sr[0-9]* as ID_CDROM 2010-05-04 09:09:32 +02:00
cdrom_id.c cdrom_id: Fix detection of reblanked DVD+RW and DVD-RAM 2010-08-08 17:47:08 +02:00