Fix a problem with the cd(4) driver -- the CAMGETPASSTHRU ioctl wouldn't
commit9a0b7133d93665dfa36e9f7f86e02b0cc7909f0e
authorPeter Avalos <pavalos@dragonflybsd.org>
Thu, 29 Nov 2007 02:32:43 +0000 (29 02:32 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Thu, 29 Nov 2007 02:32:43 +0000 (29 02:32 +0000)
tree8ff8992e77a1bc55c055d89122d1d505d2ba0116
parent56c61927feb8fb17d8c657c1e3c9dec9057aa1d3
Fix a problem with the cd(4) driver -- the CAMGETPASSTHRU ioctl wouldn't
succeed if there was no media in the drive.

For now, check the ioctl group to decide whether to check for media or not.
(We only need to check for media on CD-specific ioctls.)

Obtained-from: FreeBSD
sys/bus/cam/scsi/scsi_cd.c