[U-Boot] [PATCH V3] sandbox: restore ability to access host fs through standard commands

Simon Glass sjg at chromium.org
Thu Jun 12 20:57:51 CEST 2014


On 12 June 2014 10:28, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> Commit 95fac6ab4589 "sandbox: Use os functions to read host device tree"
> removed the ability for get_device_and_partition() to handle the "host"
> device type, and redirect accesses to it to the host filesystem. This
> broke some unit tests that use this feature. So, revert that change. The
> code added back by this patch is slightly different to pacify checkpatch.
>
> However, we're then left with "host" being both:
> - A pseudo device that accesses the hosts real filesystem.
> - An emulated block device, which accesses "sectors" inside a file stored
>   on the host.
>
> In order to resolve this discrepancy, rename the pseudo device from host
> to hostfs, and adjust the unit-tests for this change.
>
> The "help sb" output is modified to reflect this rename, and state where
> the host and hostfs devices should be used.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> Tested-by: Josh Wu <josh.wu at atmel.com>

Acked-by: Simon Glass <sjg at chromium.org>
Tested-by: Simon Glass <sjg at chromium.org>

Thanks for taking care of this Stephen. I had 'hostfile' in my version
but I think 'hostfs' is a better choice.

Regards,
Simon


More information about the U-Boot mailing list