IDE hot-swap kernel support

Seth M LaForge (sethml@ofb.net)
Thu, 29 Jun 2000 15:26:38 -0700


I've been playing with an eiWARE HotDataShuttle - a cheap IDE hot-swap
bay. See for details:
http://www.eiware.com/hotdata-shuttle/index.htm
http://www.agatetech.com/

eiWARE actually provides a Linux driver:
http://www.eiware.com/download/linux.htm
but it's a binary kernel module distributed within a RedHat 6.1 RPM,
and associated with a bunch of Gnome crap. I've written them mail
encouraging them to release the source of their driver. Until then...

The HotShuttle appears to mainly isolate the IDE bus from the drive
electronics for protection while the drive is being plugged in or
removed. It doesn't seem to do much beyond that - if I insert an IDE
device before booting the system, Linux recognizes it fine.

The problem comes when I swap drives. A BLKRRPART causes it to read
the new partition, and the new drive works. However, it does not read
the new drive geometry, so fdisk gets rather confused. Switching from
a small HDD to large one and accessing the end of the large drive
*seems* to work. Another problem is that if the system is booted with
no disk in the bay I can't get it to recognize a disk which is
inserted later.

It seems to me that what I need is a way to stimulate the ide driver
to reprobe for a drives on an ide bus. From looking at
linux/drivers/ide-probe.c, I don't see any way to manually trigger a
probe. Perhaps one should be added - 'echo 1 > /proc/ide/ide1/reprobe'?
Or even 'echo slave > /proc/ide/ide1/reprobe'?

Thoughts?

Seth

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/