chiark / gitweb /
cdrom_id: Fix state for fresh DVD-RW
authorJan Drzewiecki <jonie@icpnet.pl>
Tue, 10 Aug 2010 21:37:14 +0000 (23:37 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Tue, 10 Aug 2010 21:37:14 +0000 (23:37 +0200)
commitcf2205a1986222fdc0238190f5742f54d943cd23
tree30da4273dd70e50eb7f0218ba6f8ae4a6d738ca6
parentef5304bc8ddda1917143e96bc3addeb5a09588c6
cdrom_id: Fix state for fresh DVD-RW

Fresh DVD-RW in restricted overwite mode reports itself as "appendable"; change
it to "blank" to make it consistent with what gets reported after blanking, and
what userspace expects.

For the exotic case where some uses multi-track recording on a DVD-RW in
sequential mode, we need to tell apart sequential and restricted overwrite
modes, so keep separate states for them internally.

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
extras/cdrom_id/cdrom_id.c