From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: "Олег Власов" <allsys01@gmail.com>,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: name hash mismatch
Date: Wed, 12 Dec 2018 21:52:15 +0800 [thread overview]
Message-ID: <15b41149-3ebc-8432-7f4b-cfe0a7520fec@gmx.com> (raw)
In-Reply-To: <CAKKX_zPGBpzhq=j9wT3QXed3LWbfOn5yxctrJHRK8vhYh2MKgw@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2831 bytes --]
On 2018/12/12 下午9:51, Олег Власов wrote:
> Could you guide me ?
> What should I do after compile latest btrfs-progs?
"btrfs check --readonly <device>" and paste the output.
Thanks,
Qu
>
> ср, 12 дек. 2018 г., 16:47 Qu Wenruo quwenruo.btrfs@gmx.com
> <mailto:quwenruo.btrfs@gmx.com>:
>
>
>
> On 2018/12/12 下午9:36, Олег Власов wrote:
> > if there any way to remove that item?
>
> IIRC kernel can't remove it since the hash doesn't match, kernel won't
> be able to delete it.
>
> btrfs-progs check-next branch can handle it, but you need to ensure
> there is no other bugs.
>
> So, you still need to compile the latest btrfs-progs and then the
> check-next branch.
>
> Thanks,
> Qu
>
> > the file that belong to it is useless for me but it preventing to
> > mount filsystem in higher kernel versions
> > ср, 12 дек. 2018 г. в 16:26, Qu Wenruo <quwenruo.btrfs@gmx.com
> <mailto:quwenruo.btrfs@gmx.com>>:
> >>
> >>
> >>
> >> On 2018/12/12 下午9:00, Nikolay Borisov wrote:
> >>>
> >>>
> >>> On 12.12.18 г. 14:44 ч., Олег Власов wrote:
> >>>> Hello
> >>>> If anyone could help with with "name hash mismatch" error at btrfs.
> >>>> full error is
> >>>> "BTRFS critical (device sda5): corrupt leaf: root=2234
> >>>> block=244700761008 slot 136 ino=2531, name hash mismatch with key,
> >>>> have 0x000000000026cd84d"
> >>>> so i could not access one file neither to remove it.
> >>>>
> >>>> uname -a
> >>>> Linux linux-wwqj 4.12.14-lp150.12.16-default #1 SMP Tue Aug 14
> >>>> 17:51:27 UTC 2018 (28574e6) x86_64 x86_64 x86_64 GNU/Linux
> >>>> btrfs --version
> >>>> btrfs-progs v4.15
> >>>
> >>> First I'd suggest to update to the latest btrfs progs. Then just run
> >>> btrfs check --readonly --mode lowmem /path/to/device and paste the
> >>> output. This won't do any changes to your filesystem but will give a
> >>> better idea of what the corruption might be.
> >>
> >> Yep, that's pretty much recommended.
> >>
> >> On the other hand this kernel warning message just means exactly
> what it
> >> says.
> >> One of your DIR_ITEM has incorrect hash.
> >>
> >> IIRC this is an old bug in kernel, not sure when it get fixed but it
> >> should definitely get fixed now.
> >>
> >> If btrfs check --readonly shows *NO OTHER* bug, I have the check-next
> >> branch which could fix it.
> >>
> >> But please keep in mind, don't run btrfs check --repair right now.
> >>
> >> Thanks,
> >> Qu
> >>
> >>>
> >>>>
> >>>> tnx in advance
> >>>>
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2018-12-12 13:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-12 12:44 name hash mismatch Олег Власов
2018-12-12 13:00 ` Nikolay Borisov
2018-12-12 13:26 ` Qu Wenruo
[not found] ` <CAKKX_zMt8=zJjdK6p0bD_bVCiYsiuCbv-yRvPy9yCbrrZbwnSA@mail.gmail.com>
[not found] ` <a1ca88f9-499e-0dfa-a49f-759ab37c391b@gmx.com>
[not found] ` <CAKKX_zPGBpzhq=j9wT3QXed3LWbfOn5yxctrJHRK8vhYh2MKgw@mail.gmail.com>
2018-12-12 13:52 ` Qu Wenruo [this message]
[not found] ` <CAKKX_zNnxDsacKPg+c1wm3CkTYLMNept5v=xdXWOkWHPV7uTvw@mail.gmail.com>
2018-12-17 13:28 ` 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=15b41149-3ebc-8432-7f4b-cfe0a7520fec@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=allsys01@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).