linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hugo Mills <hugo@carfax.org.uk>
To: Waxhead <waxhead@online.no>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Will BTRFS repair or restore data if corrupted?
Date: Thu, 26 Jan 2012 08:59:38 +0000	[thread overview]
Message-ID: <20120126085938.GC5531@carfax.org.uk> (raw)
In-Reply-To: <4F208FFD.4020508@online.no>

[-- Attachment #1: Type: text/plain, Size: 849 bytes --]

On Thu, Jan 26, 2012 at 12:27:57AM +0100, Waxhead wrote:
> Hi,
> 
> From what I have read BTRFS does replace a bad copy of data with a
> known good copy (if it has one).

   Correct.

> Will BTRFS try to repair the corrupt data or will it simply silently
> restore the data without the user knowing that a file has been
> "fixed"?

   No, it'll just return the good copy and report the failure in the
system logs. If you want to fix the corrupt data, you need to use
scrub, which will check everything and fix blocks with failed
checksums.

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
          --- ...  one ping(1) to rule them all, and in the ---          
                         darkness bind(2) them.                          

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

  parent reply	other threads:[~2012-01-26  8:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-25 23:27 Will BTRFS repair or restore data if corrupted? Waxhead
2012-01-26  7:19 ` Chester
2012-01-26  8:59 ` Hugo Mills [this message]
2012-01-26  9:33   ` Stefan Behrens
2012-01-26 19:16     ` Zoiled
2012-01-26 20:22       ` cwillu
2012-01-26 20:27         ` Zoiled

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=20120126085938.GC5531@carfax.org.uk \
    --to=hugo@carfax.org.uk \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=waxhead@online.no \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).