ATA -- erratic behaviour when removing disk

Andrey V. Elsukov bu7cher at yandex.ru
Sun Feb 17 07:25:50 UTC 2008


17.02.08, 02:08, "Carlos A. M. dos Santos" <unixmania at gmail.com>:
> > precautions prior to yanking the disk.  Upon reinsertion, the system
> > found the disk and I could continue I/O operations on it as if it had
> > never been removed.  Only reason I'm pointing this out is that it
> > confirms the issue isn't hardware or with vendor implementation, but
> > rather specific to the OS.
> Congratulations to the Linux folks. Or not, since this looks like a
> very risky behavior. Who warrants you that the *same* disk was plugged
> back? Blindly continuing to write could easily corrupt the contents of
> the second drive.

There is no risk. Linux's libata detects it when you inserts a different disk.

You can read some details here:
http://www.mail-archive.com/linux-ide@vger.kernel.org/msg11742.html

--
WBR, Andrey V. Elsukov


More information about the freebsd-stable mailing list