Re: Removable media bug

Simon Richter (geier@phobos.fachschaften.tu-muenchen.de)
Wed, 5 May 1999 10:15:56 +0200 (CEST)


On Tue, 4 May 1999, Alan Cox wrote:

> Not unless you have hot swap bays. It isnt safe to swap scsi disks between
> devices on live busses. Now if you do have hot swap arrays then you do
> arguably have a case - although the bus rescan you ought to request will
> handle it

It should be safe, at least from a software point-of-view.

> What bug ?

The bug that the kernel assumes things which it cannot guarantee,
specifically that there are no two computers on the same scsi cable, which
is possible.

> If you want to flush the blocks of a disk on a umount or a mount you can do
> so btw - there are ioctls for this.

You cannot rely on the user to do something to protect the integrity of
his data, as he/she/it will simply forget.

Simon

-
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/