From: Marc MERLIN <marc@merlins.org>
To: linux-btrfs@vger.kernel.org
Subject: How to delete/rewrite a corrupted file in a read only snapshot?
Date: Tue, 6 Feb 2024 11:12:33 -0800 [thread overview]
Message-ID: <ZcKEoftmxxp3SOiB@merlins.org> (raw)
howdy,
I'm seeing this during a background check:
[374402.156920] BTRFS warning (device dm-18): checksum error at logical 4401320624128 on dev /dev/dm-18, physical 2939697954816, root 63534, inode 595460, offset 1506283520, length 4096, links 1 (path: nobck/file2)
this is in a read only btrfs send snapshot, so I can't just delete the
file or the snspshot (I have 20 historical ones all with the same broken
fine).
can I either
1) force delete it with some admin tool
2) even better force/overwrite it with the correct file from source?
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 reply other threads:[~2024-02-06 19:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-06 19:12 Marc MERLIN [this message]
2024-02-06 19:29 ` How to delete/rewrite a corrupted file in a read only snapshot? Holger Hoffstätte
2024-02-07 3:56 ` Andrei Borzenkov
2024-02-07 5:07 ` Qu Wenruo
2024-02-07 21:25 ` Marc MERLIN
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=ZcKEoftmxxp3SOiB@merlins.org \
--to=marc@merlins.org \
--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.