[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 5/5] block/raw-win32: Strip "file:" prefix on cr
From: |
Benoît Canet |
Subject: |
Re: [Qemu-devel] [PATCH 5/5] block/raw-win32: Strip "file:" prefix on creation |
Date: |
Thu, 6 Mar 2014 14:06:24 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
The Wednesday 05 Mar 2014 à 22:41:40 (+0100), Max Reitz wrote :
> The bdrv_create() implementation of the block/raw-win32 "file" protocol
> driver should strip the "file:" prefix from filenames if present.
>
> Signed-off-by: Max Reitz <address@hidden>
> ---
> block/raw-win32.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/block/raw-win32.c b/block/raw-win32.c
> index 0755434..9954748 100644
> --- a/block/raw-win32.c
> +++ b/block/raw-win32.c
> @@ -481,6 +481,8 @@ static int raw_create(const char *filename,
> QEMUOptionParameter *options,
> int fd;
> int64_t total_size = 0;
>
> + strstart(filename, "file:", &filename);
> +
> /* Read out options */
> while (options && options->name) {
> if (!strcmp(options->name, BLOCK_OPT_SIZE)) {
> --
> 1.9.0
>
>
Reviewed-by: Benoit Canet <address@hidden>
- [Qemu-devel] [PATCH 0/5] block/raw: Strip "file:" prefix from filenames, Max Reitz, 2014/03/05
- [Qemu-devel] [PATCH 1/5] block: Keep "filename" option after parsing, Max Reitz, 2014/03/05
- [Qemu-devel] [PATCH 2/5] block/raw-posix: Implement bdrv_parse_filename(), Max Reitz, 2014/03/05
- [Qemu-devel] [PATCH 3/5] block/raw-posix: Strip "file:" prefix on creation, Max Reitz, 2014/03/05
- [Qemu-devel] [PATCH 4/5] block/raw-win32: Implement bdrv_parse_filename(), Max Reitz, 2014/03/05
- [Qemu-devel] [PATCH 5/5] block/raw-win32: Strip "file:" prefix on creation, Max Reitz, 2014/03/05
- Re: [Qemu-devel] [PATCH 5/5] block/raw-win32: Strip "file:" prefix on creation,
Benoît Canet <=
- Re: [Qemu-devel] [PATCH 0/5] block/raw: Strip "file:" prefix from filenames, Eric Blake, 2014/03/05
- Re: [Qemu-devel] [PATCH 0/5] block/raw: Strip "file:" prefix from filenames, Kevin Wolf, 2014/03/06