curl: Use bdrv_open options instead of filename
commit8e6d58cd5b695045dd4a203176d2a57138e7f02a
authorKevin Wolf <kwolf@redhat.com>
Wed, 10 Apr 2013 13:31:33 +0000 (10 15:31 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 22 Apr 2013 08:27:59 +0000 (22 10:27 +0200)
tree6d0a5c7dc65cb86e52d8a6cb2f1822380b8ea76d
parent16c790926b0dda0535187a82d1b00fde19580571
curl: Use bdrv_open options instead of filename

As a bonus, going through the QemuOpts QEMU_OPT_SIZE parser for the
readahead option gives us proper error reporting that the previous use
of atoi() lacked.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/curl.c