> > Congrats... Much better than my modularization method. Thanks a ton!!! > > But why do you call it "brute force" other than just "the right way"? > I'm assuming > that the proc interface that it uses, is designed for just such a > reason, no? >
Because the right way is to just echo -n ide-scsi > /proc/ide/hdX/driver without any wizardry around. The problem is as I explained that ide-scsi never does reinit so it does not work. In current state doing reinit is not easy. What I plan is to assign fixed target id based on IDE drive number instead of current flat list. It means that hdc will always get id 3 and hdg always gets id 7 irrespectively how many ide-scsi'd devices are configured. That will make it possible to reinit at will and switch driver on the fly. I am not sure what has to be done to switch driver back, because it involves unregistering SCSI target and, well, SCSI is not the thing I'd particularly like to mess around with :-) As the first step we could make it always fail thus making ide-scsi "sticky" ... -andrej
