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

Re: Adding SCSI devices to a live machine



> From: Jim Rees <rees@umich.edu>
> Date: Mon, 31 May 1999 17:36:26 -0400
> 
>   I suppose during the device discovery phase of the boot, structures are
>   allocated for each SCSI device found.  It is possible to add to these
>   structures during run-time?
> 
> Not currently.

Huh?

Disrespecting one single design error this works like a charm.  The
error is that the bus is not a device in itself today so if the bus is
empty you cannot issue the reprobe operation.  But reprobing works:

scsi -r -f /dev/rsd0c

Will reprobe the bus that /dev/rsd0c is attached to.

I have had intentions on fixing the bus device for some years now, but
never gotten down to it.  I hate turning off machines just because I
attach a CD-R or a tape or sth.

Niklas

PS I too have code somewhere for reprobing PC-Cards in the new
framework but it is based on sth like 2.2 and not easily applicable
since the new framework we integrated is of a later version than the
one I based my work upon at the time.  I use this in production in an
application where about a 400 attaches/detaches occur per week on
each box, so it works reliably, altough it does it a lot of kernel
stack which may make it unreliable on boxes with much interrupt
activity.  Someday I'll revisit the code... but not now.

Niklas