Re: patch to enable creating device attributes before exporting h otpl ug/uevent for device kobject

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 10, 2005 at 08:34:42PM -0500, goggin, edward wrote:
> 
> The multipathd uevent handler is sometimes failing to find attribute files
> for scsi sysfs kobjects like those found under /sys/block/sda/device/
> because these sysfs attributes are created after the kobject is added
> to sysfs.  Hotplug and udev are not involved.

Then make it involved.  On modern distros, /sbin/hotplug is disabled to
NULL.  udevd watches the netlink socket and handles all of the event
ordering.  Add your hook in a udev rule and you will not have to worry
about the wait issues at all, thereby sparing the kernel these nasty
changes.

Or just copy the logic out of the udev codebase for your userspace code,
as long as it's under the GPL, you are fine to do so.

thanks,

greg k-h

--

dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux