From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Greg KH" Date: Mon, 29 Mar 2004 15:40:45 +0000 Subject: Re: removable media revalidation - udev vs. devfs or static /dev Message-Id: <013301c415a4$3376cca0$d100000a@sbs2003.local> List-Id: References: <200401012333.04930.arvidjaar@mail.ru> In-Reply-To: <200401012333.04930.arvidjaar@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sat, Jan 03, 2004 at 11:51:33AM +0300, Andrey Borzenkov wrote: > > You could make a script that just creates > > the device node in /tmp, runs dd on it, and then cleans it all up to > > force partition scanning. > > > > You miss the point. When should this script be run? There is no event when you > just insert Jaz disk; nor is there any way to trigger revalidation on access > to non-existing device like is the case without udev. > > what I aim at - udev needs to provide some extension mechanism to allow > arbitrarily scripts to be run. It does provide that mechanism. See the CALLOUT rule. It can run any program or script when a new device is seen by the kernel. thanks, greg k-h - 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/ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&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