qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH v6 1/2] block/nfs: Introduce runtime_opts in NFS


From: Kevin Wolf
Subject: Re: [Qemu-block] [PATCH v6 1/2] block/nfs: Introduce runtime_opts in NFS
Date: Mon, 31 Oct 2016 16:48:45 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Am 31.10.2016 um 16:05 hat Ashijeet Acharya geschrieben:
> Make NFS block driver use various fine grained runtime_opts.
> Set .bdrv_parse_filename() to nfs_parse_filename() and introduce two
> new functions nfs_parse_filename() and nfs_parse_uri() to help parsing
> the URI.
> Add a new option "server" which then accepts a new struct NFSServer.
> 
> Signed-off-by: Ashijeet Acharya <address@hidden>

> @@ -413,14 +612,13 @@ static int64_t nfs_client_open(NFSClient *client, const 
> char *filename,
>      ret = DIV_ROUND_UP(st.st_size, BDRV_SECTOR_SIZE);
>      client->st_blocks = st.st_blocks;
>      client->has_zero_init = S_ISREG(st.st_mode);
> +    sprintf(client->path, "%s%s", client->path, file);

This doesn't work. I'm replacing the line with *strp = '/';

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]