Re: IDE hot-swap kernel support
Andrzej Krzysztofowicz (ankry@pg.gda.pl)
Fri, 30 Jun 2000 11:21:38 +0200 (MET DST)
>
> 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'?
There's an ioctl() already in ide.c - HDIO_SCAN_HWIF.
Unfortunately it is not stable enough and have some other limitaions.
Maybe /proc interface would be better for that... Andre ?
> Thoughts?
--
=======================================================================
Andrzej M. Krzysztofowicz ankry@mif.pg.gda.pl
phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math., Technical University of Gdansk
-
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/