Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932107AbVLTU4t (ORCPT ); Tue, 20 Dec 2005 15:56:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932095AbVLTU4t (ORCPT ); Tue, 20 Dec 2005 15:56:49 -0500 Received: from ns.virtualhost.dk ([195.184.98.160]:4133 "EHLO virtualhost.dk") by vger.kernel.org with ESMTP id S932107AbVLTU4s (ORCPT ); Tue, 20 Dec 2005 15:56:48 -0500 Date: Tue, 20 Dec 2005 21:58:23 +0100 From: Jens Axboe To: john stultz Cc: Ben Collins , lkml , greg@kroah.com Subject: Re: [PATCH] block: Better CDROMEJECT Message-ID: <20051220205823.GU3734@suse.de> References: <1135047119.8407.24.camel@leatherman> <20051220074652.GW3734@suse.de> <1135082490.16754.0.camel@localhost.localdomain> <20051220132821.GH3734@suse.de> <1135085557.16754.2.camel@localhost.localdomain> <20051220133939.GI3734@suse.de> <1135087637.16754.12.camel@localhost.localdomain> <1135111300.27117.41.camel@cog.beaverton.ibm.com> <20051220205425.GT3734@suse.de> <1135112115.27117.44.camel@cog.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1135112115.27117.44.camel@cog.beaverton.ibm.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1040 Lines: 27 On Tue, Dec 20 2005, john stultz wrote: > On Tue, 2005-12-20 at 21:54 +0100, Jens Axboe wrote: > > On Tue, Dec 20 2005, john stultz wrote: > > > Although from just looking at it, don't you still need to add > > > ALLOW_MEDIUM_REMOVAL in the verify_command() list for this to work? > > > > > > Alternatively, would just the "safe_for_write(ALLOW_MEDIUM_REMOVAL);" in > > > verify_command along with the eject-opens-RW fix have almost the same > > > effect? > > > > The command is already in the safe-for-write list, so you don't have to > > change anything but fix eject to open the device O_RDWR. > > Errr? I don't see it in verify_command() from Linus' current git tree. > > Is there some other name for the same command? It's listed as GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL. -- Jens Axboe - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/