libfstools: query drivers by priority
authorDaniel Golle <daniel@makrotopia.org>
Thu, 23 Nov 2023 02:06:08 +0000 (02:06 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 1 Dec 2023 22:59:24 +0000 (22:59 +0000)
commit97bacb70138a56a8f843faaf63af16c5fb2e0d42
tree7788252baf35697c6521fa1f5931d2a2eecf88ef
parent3a07943e1e60699ba952e605f0cf23c82de356cb
libfstools: query drivers by priority

Instead of individual hacks meant to prioritize the storage backend
drivers, register them with an optional priotity. If set, the higher
priority driver should be considered be considered first.

Prioritize UBI and MTD over the bulk of block device drivers
(partname, rootdisk) which allows removing previous hacks having the
same effect.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libfstools/mtd.c
libfstools/rootdisk.c
libfstools/ubi.c
libfstools/volume.c
libfstools/volume.h