Benoît Canet <benoit.ca...@nodalink.com> writes:

>> index ff95da6..fa8a7d0 100644
>> --- a/qemu-nbd.c
>> +++ b/qemu-nbd.c
>> @@ -689,7 +689,7 @@ int main(int argc, char **argv)
>>      }
>>  
>
>>      blk = blk_new("hda", &error_abort);
> Is a blk_new_with_bs converssion missing here ?

Yes.  Max spotted it, too :)

>> -    bs = bdrv_new_root("hda", &error_abort);
>> +    bs = blk_bs(blk);
>>  
>>      srcpath = argv[optind];
>>      ret = bdrv_open(&bs, srcpath, NULL, NULL, flags, drv, &local_err);
>> -- 
>> 1.9.3
>> 

Reply via email to