aboutsummaryrefslogtreecommitdiff
path: root/fs/fs.c
diff options
context:
space:
mode:
authorHuang Jianan <jnhuang95@gmail.com>2022-02-26 15:05:47 +0800
committerTom Rini <trini@konsulko.com>2022-03-15 16:19:29 -0400
commit830613f8f5bba4456b600502f796b8ef1967b0c9 (patch)
treefddd9252b96b1ef57f9d1cda75f7e2224793c061 /fs/fs.c
parent17af72eb16a36c5d9c0348baab93615fcf0512d3 (diff)
downloadu-boot-830613f8f5bba4456b600502f796b8ef1967b0c9.zip
u-boot-830613f8f5bba4456b600502f796b8ef1967b0c9.tar.gz
u-boot-830613f8f5bba4456b600502f796b8ef1967b0c9.tar.bz2
fs/erofs: add erofs filesystem support
This patch mainly deals with uncompressed files. Signed-off-by: Huang Jianan <jnhuang95@gmail.com>
Diffstat (limited to 'fs/fs.c')
-rw-r--r--fs/fs.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/fs/fs.c b/fs/fs.c
index 023f89c..99dac0f 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -26,6 +26,7 @@
#include <linux/math64.h>
#include <efi_loader.h>
#include <squashfs.h>
+#include <erofs.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -305,6 +306,27 @@ static struct fstype_info fstypes[] = {
.mkdir = fs_mkdir_unsupported,
},
#endif
+#if IS_ENABLED(CONFIG_FS_EROFS)
+ {
+ .fstype = FS_TYPE_EROFS,
+ .name = "erofs",
+ .null_dev_desc_ok = false,
+ .probe = erofs_probe,
+ .opendir = erofs_opendir,
+ .readdir = erofs_readdir,
+ .ls = fs_ls_generic,
+ .read = erofs_read,
+ .size = erofs_size,
+ .close = erofs_close,
+ .closedir = erofs_closedir,
+ .exists = erofs_exists,
+ .uuid = fs_uuid_unsupported,
+ .write = fs_write_unsupported,
+ .ln = fs_ln_unsupported,
+ .unlink = fs_unlink_unsupported,
+ .mkdir = fs_mkdir_unsupported,
+ },
+#endif
{
.fstype = FS_TYPE_ANY,
.name = "unsupported",