From owner-cvs-src@FreeBSD.ORG Mon Nov 19 16:14:43 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 887B716A4C5; Mon, 19 Nov 2007 16:14:43 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 36B4F13C455; Mon, 19 Nov 2007 16:14:42 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id B1C9717106; Mon, 19 Nov 2007 16:14:25 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.1/8.14.1) with ESMTP id lAJGEN9q003860; Mon, 19 Nov 2007 16:14:23 GMT (envelope-from phk@critter.freebsd.dk) To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 19 Nov 2007 17:09:07 +0100." <86lk8umd3w.fsf@ds4.des.no> Date: Mon, 19 Nov 2007 16:14:23 +0000 Message-ID: <3859.1195488863@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Scott Long , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG, Nate Lawson , =?utf-8?Q?S=C3=B8ren?= Schmidt Subject: Re: cvs commit: src/sys/dev/ata atapi-cd.c atapi-cd.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 19 Nov 2007 16:14:43 -0000 In message <86lk8umd3w.fsf@ds4.des.no>, =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= wr ites: >"Poul-Henning Kamp" writes: >> In message <473DD94D.8050605@samsco.org>, Scott Long writes: >> > But then why not have g_access be able to communicate the ability to >> > access the device independent from the ability to access the media? >> > Seems like both of these questions are "access" questions. >> Because that is a lot more work for no benefit I can see ? > >There is another closely related problem which also needs fixing and >which also requires GEOM to distinguish between device and media: GEOM's >behaviour when the media changes while the device is open (e.g. burning >a CD). AFAIK, it is not currently possible to properly fixate a CD-R in >FreeBSD; the CDRIOCFIXATE ioctl always fails because once the media has >changed (from blank to non-blank), all access fails until you close and >reopen the device. This is so CD specific that somehow it must be managed inside the driver. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.