qemu-block
[Top][All Lists]
Advanced

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

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


From: Ashijeet Acharya
Subject: Re: [Qemu-block] [PATCH 1/2] block/nfs: Introduce runtime_opts in NFS
Date: Tue, 25 Oct 2016 00:22:47 +0530

On Tue, Oct 25, 2016 at 12:12 AM, Ashijeet Acharya
<address@hidden> wrote:
> On Mon, Oct 24, 2016 at 8:40 PM, Kevin Wolf <address@hidden> wrote:
>> Am 19.10.2016 um 14:38 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. This will help us to prepare the NFS for blockdev-add.
>>>
>>> Signed-off-by: Ashijeet Acharya <address@hidden>
>>> ---
>>>  block/nfs.c | 360 
>>> +++++++++++++++++++++++++++++++++++++++++++-----------------
>>>  1 file changed, 261 insertions(+), 99 deletions(-)
>>>
>>> diff --git a/block/nfs.c b/block/nfs.c
>>> index 8602a44..5eb909e 100644
>>> --- a/block/nfs.c
>>> +++ b/block/nfs.c
>>> @@ -35,8 +35,12 @@
>>> +    if (!uri->server || strcmp(uri->server, "") == 0) {
>>
>> No need to use strcmp(), !*uri->server is enough.
>
> Yes, fixed the same for uri->path too.

Can I ask why we do this check in SSH then?

Ashijeet

>> Kevin



reply via email to

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