Re: removable media revalidation - udev vs. devfs or static /dev

Greg KH
2004-01-03T20:51:17Z

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