summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2015-04-13 22:54:19 +0200
committerSimon Glass <sjg@chromium.org>2015-04-19 14:45:56 -0600
commit85300a9a9dfb364ab1a5f94e6d3f9e558a193be1 (patch)
treeca8099a081fa42f00c317ba8b3668bb0919c1da2 /fs
parentb8d7652c81689a69bc6eaa206cf875bbe632831c (diff)
downloadu-boot-imx-85300a9a9dfb364ab1a5f94e6d3f9e558a193be1.zip
u-boot-imx-85300a9a9dfb364ab1a5f94e6d3f9e558a193be1.tar.gz
u-boot-imx-85300a9a9dfb364ab1a5f94e6d3f9e558a193be1.tar.bz2
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: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/sandbox/sandboxfs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/sandbox/sandboxfs.c b/fs/sandbox/sandboxfs.c
index a920bc0..5acfc03 100644
--- a/fs/sandbox/sandboxfs.c
+++ b/fs/sandbox/sandboxfs.c
@@ -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,