From: Marc MERLIN <marc@merlins.org>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: How to delete/rewrite a corrupted file in a read only snapshot?
Date: Wed, 7 Feb 2024 13:25:03 -0800 [thread overview]
Message-ID: <ZcP1L5SUXNrB_sp_@merlins.org> (raw)
In-Reply-To: <07bc2e91-0106-48ab-b07d-f54b75e9a991@gmx.com>
On Wed, Feb 07, 2024 at 03:37:04PM +1030, Qu Wenruo wrote:
> > can I either
> > 1) force delete it with some admin tool
>
> That would break any later incremental receive.
>
> > 2) even better force/overwrite it with the correct file from source?
>
> That's possible manually.
If I change the snapshot to readwrite, and cat the good file into the
corrupted one
cat good > /path/to/bad
will that work, or will that allocate new COW blocks and do weird things
that would break later brfs send/receive?
Thanks,
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
next prev parent reply other threads:[~2024-02-07 21:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-06 19:12 How to delete/rewrite a corrupted file in a read only snapshot? Marc MERLIN
2024-02-06 19:29 ` Holger Hoffstätte
2024-02-07 3:56 ` Andrei Borzenkov
2024-02-07 5:07 ` Qu Wenruo
2024-02-07 21:25 ` Marc MERLIN [this message]
2024-02-07 21:30 ` 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=ZcP1L5SUXNrB_sp_@merlins.org \
--to=marc@merlins.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=quwenruo.btrfs@gmx.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.