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 <ashijeetacha...@gmail.com>
> @@ -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