@@ -481,6 +481,7 @@ static void cache_load(int mtd)
if (mtd) {
_cache_load("/dev/mtdblock*");
_cache_load("/dev/ubiblock*");
+ _cache_load("/dev/ubi?*_?*");
}
_cache_load("/dev/mmcblk*");
_cache_load("/dev/sd*");
@@ -174,7 +174,7 @@ int probe_block(char *block, struct blkid_struct_probe *pr)
struct stat s;
int i;
- if (stat(block, &s) || (!S_ISBLK(s.st_mode) && !S_ISREG(s.st_mode)))
+ if (stat(block, &s) || (!S_ISBLK(s.st_mode) && !S_ISREG(s.st_mode) && !strncmp(block, "ubi", 3)))
return -1;
pr->err = -1;
We already had ubifs idinfo, so only /dev/ubiN_M support was missing. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> --- block.c | 1 + libblkid-tiny/libblkid-tiny.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)