From owner-cvs-all Fri Oct 4 19:54:57 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 22AB237B401; Fri, 4 Oct 2002 19:54:56 -0700 (PDT) Received: from smtp0.adl1.internode.on.net (smtp0.adl1.internode.on.net [203.16.214.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB7EC43E6E; Fri, 4 Oct 2002 19:54:54 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from midget.dons.net.au (ppp590.sa.padsl.internode.on.net [150.101.245.77]) by smtp0.adl1.internode.on.net (8.12.4/8.12.4) with ESMTP id g952spp5001139; Sat, 5 Oct 2002 12:24:52 +0930 (CST) Received: from localhost (root@localhost [127.0.0.1]) by midget.dons.net.au (8.12.2/8.12.2) with ESMTP id g952qigh092936; Sat, 5 Oct 2002 12:22:45 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Subject: Re: cvs commit: src/sys/cam/scsi scsi_cd.c From: "Daniel O'Connor" To: obrien@FreeBSD.ORG Cc: Poul-Henning Kamp , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG In-Reply-To: <20021004194248.GA23759@dragon.nuxi.com> References: <200210041333.g94DXVJb051666@freefall.freebsd.org> <20021004194248.GA23759@dragon.nuxi.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 05 Oct 2002 12:24:46 +0930 Message-Id: <1033786486.1430.14.camel@chowder.dons.net.au> Mime-Version: 1.0 X-Spam-Score: -3.4 () IN_REP_TO X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) 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 Sat, 2002-10-05 at 05:12, David O'Brien wrote: > On Fri, Oct 04, 2002 at 06:33:31AM -0700, Poul-Henning Kamp wrote: > > 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. > > It would be nice if atapi-cd would DTRT as the SCSI-CD does: > > # dd if=/dev/acd0 of=blah > dd: /dev/acd0: Invalid argument > 0+0 records in > 0+0 records out > 0 bytes transferred in 0.000081 secs (0 bytes/sec) > > SCSI works, where I have to explicitly state "bs=2048" for atapi-cd. And for an audio disk you have to use 2352 - the point is that neither the ATAPI layer or the drive do re-blocking for you. As Poul says, 512 byte sectors on CDROM drives are a hack. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message