fstools: support for ext4fs overlay
[project/fstools.git] / libfstools / find.c
index 4c69d735d7af18d908d11ccbf520c02d7d0d9402..9fd83c9d3396e04d4eb7572958e3e5b573cbe40e 100644 (file)
@@ -102,9 +102,10 @@ find_mount_point(char *block, int mtd_only)
 
                        if (mtd_only &&
                            strncmp(t, "jffs2", 5) &&
-                           strncmp(t, "ubifs", 5)) {
+                           strncmp(t, "ubifs", 5) &&
+                           strncmp(t, "ext4", 4)) {
                                fclose(fp);
-                               fprintf(stderr, "block is mounted with wrong fs\n");
+                               ULOG_ERR("block is mounted with wrong fs\n");
                                return NULL;
                        }
                        point = p;
@@ -126,7 +127,7 @@ find_filesystem(char *fs)
        int ret = -1;
 
        if (!fp) {
-               fprintf(stderr, "opening /proc/filesystems failed: %s\n", strerror(errno));
+               ULOG_ERR("opening /proc/filesystems failed: %s\n", strerror(errno));
                goto out;
        }