Re: [PATCH v3] hfsplus: validate btree bitmap during mount and handle corruption gracefully

From: Shardul Bankar

Date: Thu Feb 26 2026 - 14:11:57 EST


On Tue, 2026-02-17 at 00:41 +0000, Viacheslav Dubeyko wrote:
> On Sun, 2026-02-15 at 23:27 +0530, Shardul Bankar wrote:
> > On Tue, 2026-02-03 at 23:12 +0000, Viacheslav Dubeyko wrote:
> > > On Tue, 2026-02-03 at 14:28 +0530, Shardul Bankar wrote:
> > > > On Mon, 2026-02-02 at 20:52 +0000, Viacheslav Dubeyko wrote:
> > > > > On Sat, 2026-01-31 at 19:34 +0530, Shardul Bankar wrote:
> As far as I can see, the main logic of working with b-tree map is
> here [1].
> Ideally, we should have a generic method that can be used as here [1]
> as in your
> patch. Could you try to make the search in b-tree map by generic
> method?
>
> Thanks,
> Slava.
>
> [1]
> https://elixir.bootlin.com/linux/v6.19-rc5/source/fs/hfsplus/btree.c#L412

Hi Slava,

I’ve posted the updated v4 series addressing this feedback in a new
thread.

Link:
https://lore.kernel.org/all/20260226091235.927749-1-shardul.b@xxxxxxxxxxxxxxxxxx/

Thanks,
Shardul