
Christian Lademann <cal@zls.de> has written this patch of hdparm-3.5
to make use of the HDIO_UNREGISTER_HWIF and HDIO_SCAN_HWIF ioctls found
in the newest kernels.  With the patched hdparm one can make the
ThinkPad 600E recognize hot-swapped ide-devices in its UltraBay,
together with tpctl and the two scripts "idectl" and "ultrabayd".

The idectl script invokes hdparm to rescan the ide channels.

The ultrabayd daemon script polls the UltraBay status (using tpctl)
and calls idectl when a change is detected.

The file hdparm-3.5.c is the source code of hdparm, release 3.5.
The file hdparm.patch is the patch for this file.
The file hdparm.c is the source code with the patch already applied.


Notes
=====

The UltraBay battery should *not* be hot swapped but warm swapped--
i.e., the machine should be suspended first.

