X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=fs%2Fsandbox%2Fsandboxfs.c;h=5acfc03704a9b35d9f823637ffac86e06f051208;hb=6e2f1538959d79b54a0ceeed2f24643cf98ebaa4;hp=a920bc087712ff289c65eec948f0f234229f9f5c;hpb=fc9b0b80435cda721fbdbe507c9e4f388b0ea62b;p=u-boot diff --git a/fs/sandbox/sandboxfs.c b/fs/sandbox/sandboxfs.c index a920bc0877..5acfc03704 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,