mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
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>
This commit is contained in:
parent
29cc5bcadf
commit
251cee0db2
3 changed files with 44 additions and 0 deletions
16
fs/fs.c
16
fs/fs.c
|
@ -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>
|
||||
|
@ -156,6 +157,21 @@ static struct fstype_info fstypes[] = {
|
|||
.write = fs_write_sandbox,
|
||||
.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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue