From owner-cvs-src@FreeBSD.ORG Sun Nov 2 14:24:49 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7BB216A4CE; Sun, 2 Nov 2003 14:24:49 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B14543FD7; Sun, 2 Nov 2003 14:24:49 -0800 (PST) (envelope-from sos@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hA2MOnXJ038904; Sun, 2 Nov 2003 14:24:49 -0800 (PST) (envelope-from sos@repoman.freebsd.org) Received: (from sos@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hA2MOmBr038903; Sun, 2 Nov 2003 14:24:48 -0800 (PST) (envelope-from sos) Message-Id: <200311022224.hA2MOmBr038903@repoman.freebsd.org> From: Søren Schmidt Date: Sun, 2 Nov 2003 14:24:48 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/ata atapi-cd.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2003 22:24:50 -0000 sos 2003/11/02 14:24:48 PST FreeBSD src repository Modified files: sys/dev/ata atapi-cd.c Log: Fix burning of CD's that got broken by the GEOM'ification. GEOM was not designed to handle media that does not have a size. Blank CD's are of that type, so cheat and set the media size to -1. This allows burning to work, but makes GEOM issue outofrange reads that makes the ATAPI subsystem spew out a few warnings. GEOM should be tought about this. GEOM was not designed to handle changing the sectorsize between opens. Writing multitack CD's with both audio and data tracks needs to change sector size on the fly. We cheat here and stuff the current sectorsize into GEOM private internals. GEOM should grow some clean way for this. Revision Changes Path 1.151 +5 -9 src/sys/dev/ata/atapi-cd.c