Re: [PATCH v2] ubi: gluebi: Fix NULL pointer dereference caused by ftl notifier

From: Richard Weinberger
Date: Mon Jun 17 2024 - 12:03:50 EST


----- Ursprüngliche Mail -----
> Von: "Gagan Sidhu" <broly@xxxxxxx>
> yes, i have a squashfs inside a ubi volume, and i create ubi block device from
> it.
>
> i do use config_mtd_ubi_block because the filesystem is squashfs.
>
> so i think it’s affirmative to both questions. gluebi for the block device from
> the ubi.fs file, then config_mtd_ubi_block to mount this read-only filesystem
> as a block device.
>
> the end result of both options is a read-only block device that can handle bad
> blocks on nand devices.
>
> if i was using an M25P80, i wouldn’t even be using ubi.
>
> so CONFIG_MTD_UBI_{GLUEBI,BLOCK} are handy for cases where you need an mtd block
> device with a read-only file system where the UBI takes care of the
> idiosyncrasies that make NAND (imo, ofc) inferior to SPI

Isn't MTD -> UBI -> GLUBI -> MTD -> MTDBLOCK performance wise a nightmare?
We have UBIBlock for this use case.

Thanks,
//richard