chiark / gitweb /
cdrom_id: set ID_CDROM_MEDIA=1 only for known media
authorKay Sievers <kay.sievers@vrfy.org>
Sat, 17 Apr 2010 17:31:44 +0000 (19:31 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 17 Apr 2010 17:31:44 +0000 (19:31 +0200)
commitbc913ce47821ed030437ec9b25507b5dd52b59cb
tree0587c527427a027baae8235654142ee0c7b7421a
parent7c07740ce7b0941844b15573449a730283d5bba5
cdrom_id: set ID_CDROM_MEDIA=1 only for known media

On Sat, Apr 17, 2010 at 18:26, Mike Brudevold <mike@brudevold.com> wrote:
> My CD-RW drive experiences a problem in that it automatically closes
> after opening if there is media in the drive.  This only happens if
> there was media in the drive when it was last closed (an empty drive
> stays open).
...
> cd_profiles: current profile 0x02
> cd_profiles: profile 0x02 <ignored>
...

Do not pretend to have a media, when we receive a profile like 0x02,
which just means "Removable disk".

Thanks to Mike Brudevold for the initial patch.
extras/cdrom_id/cdrom_id.c