From: Roman Mamedov <rm@romanrm.net>
To: Daniel Smedegaard Buus <danielbuus@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Behavior after encountering bad block
Date: Fri, 19 Jun 2020 14:31:48 +0500 [thread overview]
Message-ID: <20200619143148.1ec669e9@natsu> (raw)
In-Reply-To: <CAHnuAez0+4LR=Z=+z-bFFj2Z=Jf24YCHZ3CjHGwgsSn8mZU1eA@mail.gmail.com>
On Fri, 19 Jun 2020 10:08:43 +0200
Daniel Smedegaard Buus <danielbuus@gmail.com> wrote:
> Well, that's why I wrote having the *data* go bad, not the drive
But data going bad wouldn't pass unnoticed like that (with reads resulting in
bad data), since drives have end-to-end CRC checking, including on-disk and
through the SATA interface. If data on-disk is somehow corrupted, that will be
a CRC failure on read, and still an I/O error for the host.
I only heard of some bad SSDs (SiliconMotion-based) returning corrupted data
as if nothing happened, and only when their flash lifespan is close to
depletion.
> even though either scenario should still effectively end up yielding the
> same behavior from btrfs
I believe that's also an assumption you'd want to test, if you want to be
through in verifying its behavior on failures or corruptions. And anyways it's
better to set up a scenario which is as close as possible to ones you'd get in
real-life.
> But check out my retraction reply from earlier — it was just me being stupid
> and forgetting to use conv=notrunc on my dd command used to damage the
> loopback file :)
Sure, I only commented on the part where it still made sense. :)
--
With respect,
Roman
next prev parent reply other threads:[~2020-06-19 9:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-19 7:24 Behavior after encountering bad block Daniel Smedegaard Buus
2020-06-19 7:27 ` Daniel Smedegaard Buus
2020-06-19 7:45 ` Roman Mamedov
2020-06-19 8:08 ` Daniel Smedegaard Buus
2020-06-19 9:31 ` Roman Mamedov [this message]
2020-06-19 10:06 ` Daniel Smedegaard Buus
2020-06-19 13:12 ` Remi Gauvin
2020-06-19 21:03 ` Zygo Blaxell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200619143148.1ec669e9@natsu \
--to=rm@romanrm.net \
--cc=danielbuus@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.