[PATCH 1/1] ubi: Allow ubiblock devices nodes to be created by volume name instead of volume ID.

Patrick Doyle wpdster at gmail.com
Thu Jan 2 11:06:53 PST 2020


On Mon, Dec 30, 2019 at 12:32 PM Ezequiel Garcia
<ezequiel at vanguardiasur.com.ar> wrote:
> Hello Emil, Patrick, Richard:
>
> What we _could_ do, is extend the current syntax, passing
> a format string to the kernel. Something like this, provided
> a ubi0_0 volume, named "rootA".
>
> ubi.block=0,0,ubiblock${dev.id}_${vol.id}
>
> would create block device as "/dev/ubiblock0_0".
>
> Where as, ubi.block=0,0,ubiblock${dev.id}${vol.name}
>
> would create block device as "/dev/ubiblock0_rootA".
> Does this make any sense... or it is pure insanity?
That would work for me... as it is... the first project where I needed
this got shelved, and the second one grew an initramfs so I no longer
need the patch.  I would be happy to see others benefit from it, or
from some other, better mechanism.

--wpd



More information about the linux-mtd mailing list