On Wed, Feb 23, 2011 at 10:45 AM, Jim Huang <jim.hu...@linaro.org> wrote:
> init.rc usage example:
>    mount vfat mmc@blk1p3 /mnt/sdcard2

this feels like a weird split of the device name with mmc before and
blk1 after the @. especially if you look how its used with mtd@FSNAME

how about using mmcblkX@FSNAME or even mmc@uuid:UUID ?


> ---
>  init/builtins.c |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/init/builtins.c b/init/builtins.c
> index e0ccf9f..32d9d7f 100644
> --- a/init/builtins.c
> +++ b/init/builtins.c
> @@ -356,6 +356,16 @@ int do_mount(int nargs, char **args)
>         close(fd);
>         ERROR("out of loopback devices");
>         return -1;
> +    } else if (!strncmp(source, "mmc@blk", 7)) {
> +        sprintf(tmp, "/dev/block/mmcblk%s", source + 7);
> +
> +        if (wait)
> +            wait_for_file(tmp, COMMAND_RETRY_TIMEOUT);
> +        if (mount(tmp, target, system, flags, options) < 0) {
> +            return -1;
> +        }
> +
> +        return 0;
>     } else {
>         if (wait)
>             wait_for_file(source, COMMAND_RETRY_TIMEOUT);
> --
> 1.7.2.3
>
> _______________________________________________
> linaro-dev mailing list
> linaro-dev@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/linaro-dev
>



-- 

 - Alexander

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to