mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02: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:
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,
|
||||
|
Reference in New Issue
Block a user