diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-09-17 18:46:58 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-10-24 13:50:32 -0400 |
commit | 251cee0db23f1e2294ce28a102afde6a20e5673c (patch) | |
tree | 38925876c528afc1538b35cb0bc5d7876255dfbe /fs | |
parent | 29cc5bcadfc36957574fd0d17238a23419cac7da (diff) | |
download | u-boot-imx-251cee0db23f1e2294ce28a102afde6a20e5673c.zip u-boot-imx-251cee0db23f1e2294ce28a102afde6a20e5673c.tar.gz u-boot-imx-251cee0db23f1e2294ce28a102afde6a20e5673c.tar.bz2 |
ubifs: Add generic fs support
Add generic fs support, so that commands like ls, load and test -e can be
used on ubifs.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -23,6 +23,7 @@ #include <fat.h> #include <fs.h> #include <sandboxfs.h> +#include <ubifs_uboot.h> #include <asm/io.h> #include <div64.h> #include <linux/math64.h> @@ -157,6 +158,21 @@ static struct fstype_info fstypes[] = { .uuid = fs_uuid_unsupported, }, #endif +#ifdef CONFIG_CMD_UBIFS + { + .fstype = FS_TYPE_UBIFS, + .name = "ubifs", + .null_dev_desc_ok = true, + .probe = ubifs_set_blk_dev, + .close = ubifs_close, + .ls = ubifs_ls, + .exists = ubifs_exists, + .size = ubifs_size, + .read = ubifs_read, + .write = fs_write_unsupported, + .uuid = fs_uuid_unsupported, + }, +#endif { .fstype = FS_TYPE_ANY, .name = "unsupported", |