diff mbox

[OpenWrt-Devel] fstools: allow block to mount F2FS partitions

Message ID 151edc06bdc-360e-cffe@webprd-m09.mail.aol.com
State Changes Requested
Headers show

Commit Message

bel3atar Dec. 29, 2015, 12:39 p.m. UTC
Allow the block program to mount F2FS partitions
Signed-off-by: Mohammed Ousama BELATAR <bel3atar@aol.com>
---
 block.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


--
diff mbox

Patch

diff --git a/block.c b/block.c
index c6d1b90..a27662f 100644
--- a/block.c
+++ b/block.c
@@ -1084,7 +1084,8 @@  static int mount_extroot(char *cfg)
        }
        if (pr) {
                if (strncmp(pr->id->name, "ext", 3) &&
-                   strncmp(pr->id->name, "ubifs", 5)) {
+                   strncmp(pr->id->name, "ubifs", 5) &&
+                   strncmp(pr->id->name, "f2fs", 4)) {
                        ULOG_ERR("extroot: unsupported filesystem %s, try ext4\n", pr->id->name);
                        return -1;
                }