From: Archange <archange@archlinux.org>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>, linux-btrfs@vger.kernel.org
Subject: Re: Critical error from Tree-checker
Date: Thu, 12 Sep 2024 02:06:10 +0400 [thread overview]
Message-ID: <38982480-217f-41c4-b6b7-fd627f6fa61d@archlinux.org> (raw)
In-Reply-To: <ceb08d0d-2117-4d8a-aa94-8703c06198d5@gmx.com>
Le 12/09/2024 à 01:42, Qu Wenruo a écrit :
> 在 2024/9/12 06:53, Qu Wenruo 写道:
>> 在 2024/9/12 06:50, Archange 写道:
>>> Le 12/09/2024 à 00:54, Qu Wenruo a écrit :
>>>> 在 2024/9/12 05:25, Archange 写道:
>>>>> Le 11/09/2024 à 01:37, Qu Wenruo a écrit :
>>>>>> 在 2024/9/11 06:58, Qu Wenruo 写道:
>>>>>>> 在 2024/9/11 06:35, Archange 写道:
>>>>>>> […]
>>>>
>>>> This looks exactly like another report that is caused by inode cache.
>>>>
>>>> So in that case, mind to try the following commands?
>>>>
>>>> # btrfs rescue zero-log <device>
>>>> # btrfs rescue clear-inode-cache <device>
>>>
>>> I supposed the second command was meant to be `clear-ino-cache` (I
>>> remember having to remove `inode_cache` from mount options some time
>>> ago
>>> as it prevented booting, I had then discovered the related feature had
>>> been deprecated and removed).
>>>
>>> Here are the command outputs:
>>>
>>> # btrfs rescue zero-log /dev/mapper/rootext
>>> Clearing log on /dev/mapper/rootext, previous log_root 0, level 0
>>>
>>> # btrfs rescue clear-ino-cache /dev/mapper/rootext
>>> Successfully cleaned up ino cache for root id: 5
>>> Successfully cleaned up ino cache for root id: 257
>>> Successfully cleaned up ino cache for root id: 258
>>> corrupt node: root=7 block=647369064448 slot=0, invalid level for leaf,
>>> have 1 expect 0
>>
>> This is not expected, I guess I have to double check the inode clearing
>> code to be sure.
>
> It turns out to be a bug in the inode cache clearing code, that it holds
> a path meanwhile the fs can be modified halfway.
>
> I'll fix it soon, and keep you updated, as you may have some inode cache
> left.
OK, thanks.
next prev parent reply other threads:[~2024-09-11 22:06 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-10 21:05 Critical error from Tree-checker Archange
2024-09-10 21:28 ` Qu Wenruo
2024-09-10 21:37 ` Qu Wenruo
2024-09-11 19:55 ` Archange
2024-09-11 20:54 ` Qu Wenruo
2024-09-11 21:20 ` Archange
2024-09-11 21:23 ` Qu Wenruo
2024-09-11 21:42 ` Qu Wenruo
2024-09-11 22:06 ` Archange [this message]
2024-09-11 22:05 ` Archange
2024-09-11 22:34 ` Qu Wenruo
2024-09-12 8:21 ` Archange
2024-09-12 8:25 ` Qu Wenruo
2024-09-12 9:57 ` Archange
2024-09-12 10:01 ` Qu Wenruo
2024-09-12 10:04 ` Archange
2024-09-12 10:23 ` Qu Wenruo
2024-09-12 12:13 ` Archange
2024-09-12 21:42 ` Qu Wenruo
2024-09-13 5:25 ` Archange
2024-09-13 5:29 ` Qu Wenruo
2024-09-13 5:54 ` Archange
2024-09-13 6:12 ` Archange
2024-09-13 6:41 ` 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=38982480-217f-41c4-b6b7-fd627f6fa61d@archlinux.org \
--to=archange@archlinux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox