From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Fri, 11 Feb 2005 11:39:24 +0000 Subject: Re: [Patch] Selective removal mode for udev Message-Id: <1108121964.5397.31.camel@localhost.localdomain> List-Id: References: <420C787E.7080407@suse.de> In-Reply-To: <420C787E.7080407@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, 2005-02-11 at 11:15 +0100, Christian Zoz wrote: >On Fri, Feb 11, Kay Sievers wrote: >> On Fri, 2005-02-11 at 10:18 +0100, Hannes Reinecke wrote: >> >Because we are chicken ... >> > >> >This patch adds a 'removal' mode for udev, with three possible choices: >> > >> >- all: default behaviour; remove all nodes and symlinks >> >- symlink_only: only remove symlinks, but keep device nodes >> >- none: do not remove nodes nor symlinks. >> > >> >The latter is equivalent with the existing 'ignore_remove' rule >> >statement, but implemented as a global switch. >> >> Hmm, wouldn't it be nicer to be able to set these things along with the >> rules, so we still have only one source of policy. And we are able to >> match against SUBSYSTEMS, DRIVERS and such things? >> >> Something like an OPTIONS="..." key, which may contain a list of keys >> and we can also move the no_partitions key into that. >> >> This way we can specify the "remove-policy" with an "option" only rule >> globally or only for a certain subsystem. > >For indiviual rules there is ignore_remove. And as a global switch an >option in udev.conf is much easier. The user needs no knowldege about >rule writing. You shouldn't change udev.conf, if you don't know how to write rules. :) The point is that it's nice to have _all_ policy from one source. One line with: OPTIONS="no_remove" will do the same as the config option. But you can limit its focus with additional keys to certain devices if needed. We've removed the default permissions settings from udev.conf for the same reason. Thanks, Kay ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel