From mboxrd@z Thu Jan 1 00:00:00 1970 From: Willem Riede Date: Wed, 16 Feb 2005 23:02:41 +0000 Subject: Re: [ANNOUNCE] hotplug-ng 001 release Message-Id: <1108594961l.5056l.5l@serve.riede.org> List-Id: References: <20050211004033.GA26624@suse.de> In-Reply-To: <20050211004033.GA26624@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On 02/16/2005 06:07:52 AM, Roman Kagan wrote: > Below is the promised patch dealing with scsi module loading (can't > compile-test it at the moment, sorry). It has two caveats (I suspect > you'll find more :) : >=20 > 1) I'm not particularly certain about the "scsi-type-" prefix: it may > resemble cases where request_module() is used; >=20 > 2) TYPE_* macros in include/linux/scsi.h are in hex and can't be > conveniently __stringify()-ed, so I've hardcoded the values and > inserted comments next to them referring to those macros. >=20 > It handles only st, sd_mod and sr_mod cases (as > hotplug-ng-001/module_scsi.c did). Are there any other? Not all tapes are supported by st - OnStream drives need osst instead. How do you suggest that is to be handled? > diff -ruNp -x '*~' linux-2.6.11-rc4.hotplug.orig/drivers/scsi/st.c linux-= 2.6.11-rc4.hotplug/drivers/scsi/st.c > --- linux-2.6.11-rc4.hotplug.orig/drivers/scsi/st.c 2005-02-13 06:06:55.0= 00000000 +0300 > +++ linux-2.6.11-rc4.hotplug/drivers/scsi/st.c 2005-02-16 04:26:28.000000= 000 +0300 > @@ -4090,6 +4090,8 @@ static void __exit exit_st(void) > printk(KERN_INFO "st: Unloaded.\n"); > } > =20 > +MODULE_ALIAS("scsi-type-1"); /* TYPE_TAPE */ Thanks, Willem Riede, osst maintainer. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=CCk _______________________________________________ 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