Skip to content
Snippets Groups Projects
Commit 85300a9a authored by Sjoerd Simons's avatar Sjoerd Simons Committed by Simon Glass
Browse files

sandbox: only do sandboxfs for hostfs interface


Only do sandbox filesystem access when using the hostfs device
interface, rather then falling back to it in all cases. This prevents
confusion situations due to the fallback being taken rather then an
unsupported error being raised.

Signed-off-by: default avatarSjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent b8d7652c
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,11 @@
int sandbox_fs_set_blk_dev(block_dev_desc_t *rbdd, disk_partition_t *info)
{
return 0;
/*
* Only accept a NULL block_dev_desc_t for the sandbox, which is when
* hostfs interface is used
*/
return rbdd != NULL;
}
int sandbox_fs_read_at(const char *filename, loff_t pos, void *buffer,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment