
On Sun, Feb 24, 2013 at 09:35:42AM -0800, Simon Glass wrote:
Hi,
On Wed, Dec 26, 2012 at 11:53 AM, Simon Glass sjg@chromium.org wrote:
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.
Are there any comments on this series please? It adds new methods to the filesystem interface, and a new 'host' filesystem type for sandbox.
Applied to u-boot/master, thanks!