]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Unhook the SCSI CD driver from the disk "mini-layer" and/or GEOM.
authorPoul-Henning Kamp <phk@FreeBSD.org>
Fri, 4 Oct 2002 13:33:30 +0000 (13:33 +0000)
committerPoul-Henning Kamp <phk@FreeBSD.org>
Fri, 4 Oct 2002 13:33:30 +0000 (13:33 +0000)
commit38e2693b944c8454912f6922c716c00de8a2bc8a
treefccc417b271e1be100977e97631091b1441a67b2
parentc6a1c7c5b96012b91e45f1154fff5f43dded9958
Unhook the SCSI CD driver from the disk "mini-layer" and/or GEOM.

SCSI disks are too square pegs for the round holes in both of these.

And since atapi-cd has clearly shown that there are better acccess
models for CD media than trying to pretend to be a classical disk,
we stop the masquerade rather than patch up the costume.

But do implement the DIOCGMEDIASIZE and DIOCGSECTORSIZE so it will
be possible to manually attach to GEOM, should some the need arise.

Ideally, this driver should do media-detection and call make_dev()
when a CD is inserted and destroy_dev() when it is removed, this
would allow our future devd(8) to automount etc etc but coding that
takes SCSI-clue beyond anything I posses.

Tested on:      sparc64
sys/cam/scsi/scsi_cd.c