]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Unhook the SCSI CD driver from the disk "mini-layer" and/or GEOM.
authorphk <phk@FreeBSD.org>
Fri, 4 Oct 2002 13:33:30 +0000 (13:33 +0000)
committerphk <phk@FreeBSD.org>
Fri, 4 Oct 2002 13:33:30 +0000 (13:33 +0000)
commit54a5f50c0ea00562090ca07989d362f767ebb4a2
treefccc417b271e1be100977e97631091b1441a67b2
parent6a20847b5bcdec7e466cf631e0e6386b143080b5
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