All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/11] sandbox: Add filesystem support
@ 2012-12-26 19:53 Simon Glass
  2012-12-26 19:53 ` [U-Boot] [PATCH 01/11] ext4: Split write support into its own file Simon Glass
                   ` (11 more replies)
  0 siblings, 12 replies; 32+ messages in thread
From: Simon Glass @ 2012-12-26 19:53 UTC (permalink / raw)
  To: u-boot

This series adds support for filesystems to sandbox. While we don't yet have
access to host machine block devices, we can access files on the host through
a new 'host' filesystem type and the new sandbox command 'sb'.

For example:

sb load host 0 1000 foo.bar

will load foo.bar from the host into memory at address 1000. The '0'
parameter is the device number, currently unused.

While doing this work, I noticed that fs.c had code that probably belongs
more in the filesystems themselves. So this series moves fat/ext4 code into
those files. This removes most of the #ifdefs from this file, as well as
the #defines of functions to 'unsupported'. Now there is a list of
filesystems that we support, and if we don't find the one we need, we
automatically fall back to the 'unsupported' one.

Finally, the ext4 write support is moved into a separate file since ext4fs.c
was over 3500 lines and the write support seems entirely separate from the
main function in that file.


Simon Glass (11):
  ext4: Split write support into its own file
  fs: Fully populate the filesystem method struct
  fs: Use filesystem methods instead of switch()
  fs: Tell probe functions where to put their results
  fs: Use map_sysmem() on read
  fs: Move ls and read methods into ext4, fat
  sandbox: Add a way of obtaining directory listings
  sandbox: Add host filesystem
  sandbox: Add 'sb' command to access filesystem features
  sandbox: Enable ext4 and fat filesystems
  sandbox: config: Enable sandbox command

 Makefile                  |    1 +
 README                    |    1 +
 arch/sandbox/cpu/os.c     |  101 +++++
 common/Makefile           |    1 +
 common/cmd_sandbox.c      |   63 +++
 disk/part.c               |   17 +
 fs/ext4/Makefile          |    2 +-
 fs/ext4/ext4_write.c      |  996 +++++++++++++++++++++++++++++++++++++++++++++
 fs/ext4/ext4fs.c          |  962 +------------------------------------------
 fs/fat/fat.c              |   17 +
 fs/fs.c                   |  237 +++++-------
 fs/sandbox/Makefile       |   47 +++
 fs/sandbox/sandboxfs.c    |   83 ++++
 include/config_cmd_all.h  |    1 +
 include/configs/sandbox.h |    9 +
 include/ext4fs.h          |    3 +
 include/fat.h             |    2 +
 include/fs.h              |    1 +
 include/os.h              |   48 +++
 include/sandboxfs.h       |   30 ++
 20 files changed, 1533 insertions(+), 1089 deletions(-)
 create mode 100644 common/cmd_sandbox.c
 create mode 100644 fs/ext4/ext4_write.c
 create mode 100644 fs/sandbox/Makefile
 create mode 100644 fs/sandbox/sandboxfs.c
 create mode 100644 include/sandboxfs.h

-- 
1.7.7.3

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2013-03-04 21:27 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-26 19:53 [U-Boot] [PATCH 0/11] sandbox: Add filesystem support Simon Glass
2012-12-26 19:53 ` [U-Boot] [PATCH 01/11] ext4: Split write support into its own file Simon Glass
2012-12-27 14:46   ` Lukasz Majewski
2013-02-07 11:35     ` Lukasz Majewski
2013-02-08  6:51       ` Simon Glass
2013-02-08  7:23         ` Lukasz Majewski
2013-03-01 17:35   ` Tom Rini
2012-12-26 19:53 ` [U-Boot] [PATCH 02/11] fs: Fully populate the filesystem method struct Simon Glass
2013-03-01 17:35   ` Tom Rini
2012-12-26 19:53 ` [U-Boot] [PATCH 03/11] fs: Use filesystem methods instead of switch() Simon Glass
2013-03-01 17:35   ` Tom Rini
2012-12-26 19:53 ` [U-Boot] [PATCH 04/11] fs: Tell probe functions where to put their results Simon Glass
2013-03-01 17:36   ` Tom Rini
2012-12-26 19:53 ` [U-Boot] [PATCH 05/11] fs: Use map_sysmem() on read Simon Glass
2013-03-01 17:36   ` Tom Rini
2012-12-26 19:53 ` [U-Boot] [PATCH 06/11] fs: Move ls and read methods into ext4, fat Simon Glass
2013-03-01 17:36   ` Tom Rini
2012-12-26 19:53 ` [U-Boot] [PATCH 07/11] sandbox: Add a way of obtaining directory listings Simon Glass
2013-03-01 17:37   ` Tom Rini
2013-03-01 18:21     ` Simon Glass
2013-03-01 18:26       ` Tom Rini
2013-03-01 18:27         ` Simon Glass
2012-12-26 19:53 ` [U-Boot] [PATCH 08/11] sandbox: Add host filesystem Simon Glass
2013-03-01 17:37   ` Tom Rini
2012-12-26 19:53 ` [U-Boot] [PATCH 09/11] sandbox: Add 'sb' command to access filesystem features Simon Glass
2013-03-01 17:37   ` Tom Rini
2012-12-26 19:53 ` [U-Boot] [PATCH 10/11] sandbox: Enable ext4 and fat filesystems Simon Glass
2013-03-01 17:37   ` Tom Rini
2012-12-26 19:53 ` [U-Boot] [PATCH 11/11] sandbox: config: Enable sandbox command Simon Glass
2013-03-01 17:37   ` Tom Rini
2013-02-24 17:35 ` [U-Boot] [PATCH 0/11] sandbox: Add filesystem support Simon Glass
2013-03-04 21:27   ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.