From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Christian Pernegger <pernegger@gmail.com>
Cc: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: first it froze, now the (btrfs) root fs won't mount ...
Date: Sun, 27 Oct 2019 21:38:00 +0800 [thread overview]
Message-ID: <5c1bac32-8925-5925-5c86-8efa46d11738@gmx.com> (raw)
In-Reply-To: <CAKbQEqFne8eohE3gvCMm8LqA-KimFrwwvE5pUBTn-h-VBhJq1A@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1491 bytes --]
On 2019/10/27 下午8:41, Christian Pernegger wrote:
> [Replying off-list. There shouldn't be anything private in there, but
> you never know, and it does have filenames. I'd appreciate it if you
> were to delete the data once you're sure you've gotten everything you
> can from it.]
Sure.
BTW, this use case reminds me to add an option to censor the filenames...
>
> Am So., 27. Okt. 2019 um 02:46 Uhr schrieb Qu Wenruo <quwenruo.btrfs@gmx.com>:
>> So "dmesg" is enough to output them.
>>
>> To find all csum error, there is the poor man's read-only scrub:
>> # find <mnt> -type f -exec cat {} > /dev/null \;
>
> I ended up diffing the files that were either in the data restored by
> btrfs restore or the ro-mount courtesy of rescue_branch, in order to
> read all files, expose files that were restored differently [1] or
> missing in one copy [just pipes & such]. Note that this is just for
> @home.
Considering you have log tree populated, it may have something to do
with log tree.
If you want to be extra safe, notreelog (yes, this time I didn't screw
up the mount option name) could make it a little safer, while make
fsync() a little slower.
Furthermore, according to your kernel log, it's not your data corrupted,
but the csum tree corrupted, thus btrfs fails to read out the csum, then
report -EIO.
It's possible that your data is just fine.
Maybe I can also enhance that part for btrfs...
Thanks,
Qu
>
> Cheers,
> C.
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2019-10-27 13:38 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAKbQEqE7xN1q3byFL7-_pD=_pGJ0Vm9pj7d-g+rRgtONeH-GrA@mail.gmail.com>
2019-10-19 22:34 ` first it froze, now the (btrfs) root fs won't mount Christian Pernegger
2019-10-20 0:38 ` Qu Wenruo
2019-10-20 10:11 ` Christian Pernegger
2019-10-20 10:22 ` Christian Pernegger
2019-10-20 10:28 ` Qu Wenruo
2019-10-21 10:47 ` Christian Pernegger
2019-10-21 10:55 ` Qu Wenruo
2019-10-21 11:47 ` Austin S. Hemmelgarn
2019-10-21 13:02 ` Christian Pernegger
2019-10-21 13:34 ` Qu Wenruo
2019-10-22 22:56 ` Christian Pernegger
2019-10-23 0:25 ` Qu Wenruo
2019-10-23 11:31 ` Austin S. Hemmelgarn
2019-10-24 10:41 ` Christian Pernegger
2019-10-24 11:26 ` Qu Wenruo
2019-10-24 11:40 ` Austin S. Hemmelgarn
2019-10-25 16:43 ` Christian Pernegger
2019-10-25 17:05 ` Christian Pernegger
2019-10-25 17:16 ` Austin S. Hemmelgarn
2019-10-25 17:12 ` Austin S. Hemmelgarn
2019-10-26 0:01 ` Qu Wenruo
2019-10-26 9:23 ` Christian Pernegger
2019-10-26 9:41 ` Qu Wenruo
2019-10-26 13:52 ` Christian Pernegger
2019-10-26 14:06 ` Qu Wenruo
2019-10-26 16:30 ` Christian Pernegger
2019-10-27 0:46 ` Qu Wenruo
[not found] ` <CAKbQEqFne8eohE3gvCMm8LqA-KimFrwwvE5pUBTn-h-VBhJq1A@mail.gmail.com>
2019-10-27 13:38 ` Qu Wenruo [this message]
2019-10-21 14:02 ` Austin S. Hemmelgarn
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=5c1bac32-8925-5925-5c86-8efa46d11738@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=pernegger@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox