[PATCH v3 2/2] mtd: block2mtd: add support for an optional custom MTD label
Miquel Raynal
miquel.raynal at bootlin.com
Fri Oct 15 03:31:21 PDT 2021
On Sat, 2021-10-09 at 06:09:55 UTC, Joachim Wiberg wrote:
> This patch adds support for an optional MTD label for mtd2block emulated
> MTD devices. Useful when, e.g., testing device images using Qemu.
>
> The following line in /etc/fstab can then be used to mount a file system
> regardless if running on an embedded system, or emulated with block2mtd:
>
> mtd:Config /mnt jffs2 noatime,nodiratime 0 0
>
> Kernel command line syntax in the emulated case:
>
> block2mtd.block2mtd=/dev/sda,,Config
>
> Notice the ',,' it is the optional erase_size, which like before this
> patch, defaults to PAGE_SIZE when omitted. Hence the strlen() check.
>
> Signed-off-by: Joachim Wiberg <troglobit at gmail.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel
More information about the linux-mtd
mailing list