Re: [ANNOUNCE] [PATCHES] Advanced TCA Hotswap Support in Linux Kernel

Steven Dake
2002-10-15T19:20:45Z

Michael Clark wrote:

> On 10/16/02 01:38, Steven Dake wrote:
>
>> At this point, there isn't anything using them. I am working on a
>> hotswap manager, that may be in kernel space (for performance
>> reasons) that may use these interfaces. I'm also working on a SAFTE
>> Hotswap processor module (ie; drivers/scsi/sp.c) for the SCSI
>> subsystem that uses these interfaces. (Safte is a hotswap standard
>> for SCSI chassis).
>
>
> Do you really want to have SAF-TE polling in the kernel?

Good code thanks for the pointer.

When I searched months ago, there wasn't anything out there.

Safte polling in the kernel isn't inherently bad and could be tied into
the hotplug mechanism.

Making SAFTE hotswap available via SG would also work but system
performance would be bad at small poll intervals (like 100 msec).

Thanks
-steve

>
> This can easily be accomplished in userspace using sg.
>
> safte-monitor <http://gort.metaparadigm.com/safte-monitor/> can already
> provde disk insertion, removal notifications in userspace and already
> supports calling out to a script with the physical slot location
> information
> (and with tweaks to the code, scsi device of the disk inserted)
>
> There is even code in safte-monitor to identify the wwn of the devices
> in each slot, although it needs updating to the latest qlogic ioctl
> interface (or hbaapi).
>
> ~mc
>
>
>