Skip to content

mtdblock: Advertise about UBI and UBI block

Ezequiel Garcia linux-mtd lkml 1 version Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 14 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3mtdblock: Update old JFFS2 mention in Kconfigdrivers/mtd/Kconfig+3 -40 replies
1/3mtdblock: Update old JFFS2 mention in Kconfigdrivers/mtd/Kconfig+3 -41 reply
2/3mtdblock: Add comment about UBI block devicesdrivers/mtd/Kconfig+3 -00 replies
2/3mtdblock: Add comment about UBI block devicesdrivers/mtd/Kconfig+3 -01 reply
3/3mtdblock: Warn if the added for a NAND devicedrivers/mtd/mtdblock.c drivers/mtd/mtdblock_ro.c+8 -00 replies
3/3mtdblock: Warn if the added for a NAND devicedrivers/mtd/mtdblock.c drivers/mtd/mtdblock_ro.c+8 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] mtdblock: Advertise about UBI and UBI block

Hi Richard, and everyone else:

Browsing the internet for "JFFS2 mtd" results in tutorials, articles and github.gists0 that point to mtdblock.

In fact, even the MTD wiki mentions that JFFS2
needs mtdblock to mount a rootfs:

http://www.linux-mtd.infradead.org/faq/jffs2.html

Moreover, I suspect there may be lots of users
that still believe mtdblock is somehow needed to
mount SquashFS.

I've taken a verbose route and added a pr_warn warning if the devices are NAND. I don't think using NAND without UBI is too wise, and given the amount of outdated tutorials I believe some advertising will help.

These patches are compile-tested only, as I don't have devices ready to test, but I can undust some boards and do some experiments if you think it's needed.

Oh, and PS: We also need to update the wiki.

Ezequiel Garcia (3):
mtdblock: Update old JFFS2 mention in Kconfig
mtdblock: Add comment about UBI block devices
mtdblock: Warn if the added for a NAND device

 drivers/mtd/Kconfig       | 10 ++++++----
 drivers/mtd/mtdblock.c    |  4 ++++
 drivers/mtd/mtdblock_ro.c |  4 ++++
 3 files changed, 14 insertions(+), 4 deletions(-)
Signature · 1 line
2.32.0