mtdblock: Add comment about UBI block devices
authorEzequiel Garcia <ezequiel@collabora.com>
Sun, 1 Aug 2021 23:45:08 +0000 (20:45 -0300)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 6 Aug 2021 20:05:13 +0000 (22:05 +0200)
commit42ba8c3b426342b39341e1b7a97f2387821bff86
treef126ae093ba23abad181291c143f2a0eda978b04
parent6bc219b7b2cdd9d45ea15926d32c5e5c1d63881e
mtdblock: Add comment about UBI block devices

There is a surprisingly large number of tutorials
that suggest using mtdblock to mount SquashFS filesystems
on flash devices, including NAND devices.

Given this approach is suboptimal than using UBI, and given
the UBI block device layer was introduced many years ago
specifically with this use case in mind, add a small
comment inviting users and developers to consider UBI block.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210801234509.18774-7-ezequiel@collabora.com
drivers/mtd/Kconfig