Hi, Den tors 4 apr. 2019 kl 21:43 skrev Richard Weinberger <richard@xxxxxx>: > > Am Donnerstag, 4. April 2019, 17:29:16 CEST schrieb Patrick Doyle: > > Add support for CONFIG_MTD_UBI_BLOCK_BY_NAME, which enables ubi block > > devices to be named by their volume name: /dev/ubiblock%d_%s rather than > > their volume ID /dev/ubiblock%d_%d, so that one can mount e.g. a root > > filesystem by UBI name instead of volume ID. UBI volumes can be renamed > > on-the-fly in user space. This allows the root file system to be swapped > > from an "A" volume to a "B" volume without having to change the mount > > options. > > Isn't this why we have udev, to create fancy by-id/by-path/... naming conventions? > > Thanks, > //richard I actually implemented the same change some time ago, for the exact same reason (swapping two volumes and then reboot). Referring to an ubi volume by name is more convenient than volume numbers, since names can be changed and numbers can't. Is it maybe possible to define both /dev/ubiblock%d_%d and /dev/ubiblock%d_%s at the same time? How would this be done with udev instead to get "fancy by-id"? /Emil ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/