Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Feb 2008 10:51:51 -0300
From:      "Carlos A. M. dos Santos" <unixmania@gmail.com>
To:        freebsd-stable@freebsd.org
Subject:   Re: ATA -- erratic behaviour when removing disk
Message-ID:  <e71790db0802170551s25900783lec1268074adbce67@mail.gmail.com>
In-Reply-To: <886021203233140@webmail26.yandex.ru>
References:  <20080216210736.GA17517@eos.sc1.parodius.com> <886021203233140@webmail26.yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 17, 2008 4:25 AM, Andrey V. Elsukov <bu7cher@yandex.ru> wrote:
> 17.02.08, 02:08, "Carlos A. M. dos Santos" <unixmania@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e71790db0802170551s25900783lec1268074adbce67>