From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Fri, 13 Sep 2002 19:18:47 +0000 Subject: Re: Did you try devlabel Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org I'd kind of thought that this stuff should happen through some kind of "disk" hotplug event. And maybe the natural spot for such calls is driverfs: for devices in the "disk" class; but it could also be called directly from each of the bus-specific disk drivers (IDE, SCSI-over-{SCSI,USB,IDE,Firewire,...}, Flash, etc). Given such a hotplug event, I think this package would simplify a bit -- "/etc/hotplug/disk.agent" would replace patches for all current (and future) bus agents. I'd prefer such a structure; it could still handle SCSI of course. I'd see SCSI hotplug as responsible for loading the SCSI disk or cdrom driver ... and when those drivers found a device, they'd trigger a "disk" hotplug event. Which would have the benefit of whatever smarts the bus-specific disk driver could share. There've been a lot of discussions about how to identify disks, multipathing and so on. I think the conclusion was that some user mode policy input was needed. Your scsi_unique_id program seems like it'd be important for a number of SCSI configs, and could grow to handle the bigger ones. - Dave p.s. Was /dev/hda supposed to work as input to 'scsi_unique_id'? the man page implied it should, but that didn't work. And I'd expect /usr/sbin for such sysadin tools. Gary_Lerhaupt@Dell.com wrote: > I haven't written the scsi hotplug patch but it should be trivial. On all > storage hotplugs, at the very bottom of the add & remove calls, there should > be: > > if [ -x /sbin/devlabel ]; then > devlabel restart > fi > > If you can think of a less intrusive method to get this kicked off on all > add/remove events, I am game. > > gary > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ 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