diff options
author | Joao Marcos Costa | 2020-07-30 15:33:47 +0200 |
---|---|---|
committer | Tom Rini | 2020-08-07 22:31:32 -0400 |
commit | c51006130370b48b7eb5a93ada745385aa27f6bf (patch) | |
tree | ecd8782353da828ee0761eaa83d6ed2fe3f6c9bd /fs/fs.c | |
parent | 550a9e7902ce2a6103d97d70a22bad64e4fab7fd (diff) |
fs/squashfs: new filesystem
Add support for SquashFS filesystem. Right now, it does not support
compression but support for zlib will be added in a follow-up commit.
Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Diffstat (limited to 'fs/fs.c')
-rw-r--r-- | fs/fs.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -22,6 +22,7 @@ #include <div64.h> #include <linux/math64.h> #include <efi_loader.h> +#include <squashfs.h> DECLARE_GLOBAL_DATA_PTR; @@ -277,6 +278,20 @@ static struct fstype_info fstypes[] = { .ln = fs_ln_unsupported, }, #endif +#if IS_ENABLED(CONFIG_FS_SQUASHFS) + { + .fstype = FS_TYPE_SQUASHFS, + .name = "squashfs", + .probe = sqfs_probe, + .opendir = sqfs_opendir, + .readdir = sqfs_readdir, + .ls = fs_ls_generic, + .read = sqfs_read, + .size = sqfs_size, + .close = sqfs_close, + .closedir = sqfs_closedir, + }, +#endif { .fstype = FS_TYPE_ANY, .name = "unsupported", |