linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Hotplug events for block devices?
@ 2003-03-12 23:09 Kevin P. Fleming
  2003-03-12 23:36 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kevin P. Fleming @ 2003-03-12 23:09 UTC (permalink / raw)
  To: linux-hotplug

In looking at the boot process of a 2.5.64 kernel (with DEBUG defined in 
drivers/base/hotplug.c), I can see hotplug events for each of my ATA disks as 
they are added to the "ide" bus in sysfs. So far so good.

However, I'd like to be able to receive hotplug events for _all_ block devices, 
regardless of connection type or anything else. In fact, I'd like to receive 
hotplug events for all block device _minors_ as well, so when the kernel scans 
(or receives) partition information that would generate events as well. The 
event would only have to indicate add/remove, "block", and the DEVPATH to the 
device node in sysfs.

Currently, the "whole disk" block devices appear in /sys/block, but the 
partitions don't seem to appear anywhere in sysfs. However, it appears that the 
"block" directory is a sysfs "subsystem", not a class, so no hotplug events are 
generated when the block subsystem adds/removes devices.

How should this be accomplished? Should the "block" subsystem really be a sysfs 
"class"?



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-03-13  0:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-12 23:09 Hotplug events for block devices? Kevin P. Fleming
2003-03-12 23:36 ` Greg KH
2003-03-13  0:08 ` Oliver Neukum
2003-03-13  0:10 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).