X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=fs%2Fsandbox%2Fsandboxfs.c;h=2703eed2088b44164d03c6ab5e4d6904c226e28a;hb=312a6c016a2d81aa3fbc605f5c0c315b6a4e3464;hp=a920bc087712ff289c65eec948f0f234229f9f5c;hpb=dee332ffb735f65ab922118791a583c17bb0b795;p=u-boot diff --git a/fs/sandbox/sandboxfs.c b/fs/sandbox/sandboxfs.c index a920bc0877..2703eed208 100644 --- a/fs/sandbox/sandboxfs.c +++ b/fs/sandbox/sandboxfs.c @@ -8,9 +8,13 @@ #include #include -int sandbox_fs_set_blk_dev(block_dev_desc_t *rbdd, disk_partition_t *info) +int sandbox_fs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info) { - return 0; + /* + * Only accept a NULL struct blk_desc 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,