All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Matthew Warren <matthewwarren101010@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Changing the checksum algorithm on an existing BTRFS filesystem
Date: Mon, 4 Oct 2021 11:51:46 +0200	[thread overview]
Message-ID: <20211004095146.GU9286@twin.jikos.cz> (raw)
In-Reply-To: <CA+H1V9wsz2y21qxaYAkNa2PuBUCnM4yFVpoSC5rGav-1LHdwHA@mail.gmail.com>

On Mon, Oct 04, 2021 at 12:26:16AM -0500, Matthew Warren wrote:
> Is there currently any way to change the checksum used by btrfs
> without recreating the filesystem and copying data to the new fs?

I have a WIP patch but it's buggy. It works on small filesystems but
when I tried it on TB-sized images it blew up somewhere. Also the WIP is
not too smart, it deletes the whole checksum tree and rebuilds if from
the on-disk data, so it lacks the verification against the existing
csums. I intend to debug it some day but it's a nice to have feature,
I'm aware that people have been asking for it but at this point it would
be to dangerous to provide even the prototype.

  parent reply	other threads:[~2021-10-04  9:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-04  5:26 Changing the checksum algorithm on an existing BTRFS filesystem Matthew Warren
2021-10-04  6:20 ` Nikolay Borisov
2021-10-04  9:51 ` David Sterba [this message]
2021-10-04 16:01   ` Matthew Warren
2021-10-04 20:37     ` Chris Murphy
2021-10-04 22:54     ` Qu Wenruo
2021-10-05  3:26       ` Zygo Blaxell
2021-10-05  6:00         ` Qu Wenruo

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=20211004095146.GU9286@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=matthewwarren101010@gmail.com \
    /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.