libfstools/mount: Support latest overlayfs versions
[project/fstools.git] / block.c
diff --git a/block.c b/block.c
index 9122ebf..f4c0bd8 100644 (file)
--- a/block.c
+++ b/block.c
@@ -474,12 +474,15 @@ static int _cache_load(const char *path)
 
 static void cache_load(int mtd)
 {
 
 static void cache_load(int mtd)
 {
-       if (mtd)
+       if (mtd) {
                _cache_load("/dev/mtdblock*");
                _cache_load("/dev/mtdblock*");
+               _cache_load("/dev/ubiblock*");
+       }
        _cache_load("/dev/mmcblk*");
        _cache_load("/dev/sd*");
        _cache_load("/dev/hd*");
        _cache_load("/dev/md*");
        _cache_load("/dev/mmcblk*");
        _cache_load("/dev/sd*");
        _cache_load("/dev/hd*");
        _cache_load("/dev/md*");
+       _cache_load("/dev/vd*");
        _cache_load("/dev/mapper/*");
 }
 
        _cache_load("/dev/mapper/*");
 }