ATA -- erratic behaviour when removing disk

Carlos A. M. dos Santos unixmania at gmail.com
Sun Feb 17 13:51:53 UTC 2008


On Feb 17, 2008 4:25 AM, Andrey V. Elsukov <bu7cher at yandex.ru> wrote:
> 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

Quoting the message you pointed out:

"You might lose cached and in-flight data of course, and userspace
applications may or may not handle the disappearance of their
underlying filesystem with grace and aplomb :)"

Perhaps you believe that allowing userland applications to lose data
is not risky. I strongly disagree.

-- 
Carlos A. M. dos Santos


More information about the freebsd-stable mailing list