From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Wed, 15 Sep 2004 00:35:52 +0000 Subject: Re: hotplug "rename" event for kobject_rename()? Message-Id: <20040915003552.GB24492@kroah.com> List-Id: References: <1095095673.15966.47.camel@localhost.localdomain> In-Reply-To: <1095095673.15966.47.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Sep 13, 2004 at 07:14:33PM +0200, Kay Sievers wrote: > Hi, > we currently get hotplug events for kobject "add" and "remove". Wouldn't > it be nice to get the same kind of event for a kobject "rename"? I don't know, what controls a rename, a userspace event, right? > We currently fake a hotplug-event with udev while renaming a net-device. > We compose the new DEVPATH and call the network hotplug script from a > dev.d/ callout. If we would get a real "rename" event we can get rid of > that indirection and the rest of userspace can act properly too :). > > What do you think about emitting a "rename" event from: > kobject_rename(struct kobject * kobj, char *new_name) Wouldn't it just be the same as a "remove" and an "add" event? > and add the old name to the environment? What would the environment variables look like to show the old and new names? thanks, greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ 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