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

bel3atar bel3atar at aol.fr
Tue Dec 29 07:39:49 EST 2015


Allow the block program to mount F2FS partitions
Signed-off-by: Mohammed Ousama BELATAR <bel3atar at aol.com>
---
 block.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


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;
                }
-- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20151229/7535fdc9/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list