From owner-cvs-all Fri Oct 4 10: 9:27 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0D1D37B404 for ; Fri, 4 Oct 2002 10:09:25 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 8AAFE43E42 for ; Fri, 4 Oct 2002 10:09:21 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 94780 invoked by uid 1000); 4 Oct 2002 17:09:21 -0000 Date: Fri, 4 Oct 2002 10:09:21 -0700 (PDT) From: Nate Lawson To: Poul-Henning Kamp Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/cam/scsi scsi_cd.c In-Reply-To: <200210041333.g94DXVJb051666@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 4 Oct 2002, Poul-Henning Kamp wrote: > phk 2002/10/04 06:33:31 PDT > > Modified files: > sys/cam/scsi scsi_cd.c > Log: > 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 > > Revision Changes Path > 1.62 +23 -117 src/sys/cam/scsi/scsi_cd.c A CAM redesign is underway. Along with it will come modernization -- SMP locking, dev_t updating, etc. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message