Message ID | 1369373827-9152-12-git-send-email-famz@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/block/curl.c b/block/curl.c index e067417..bce2e8a 100644 --- a/block/curl.c +++ b/block/curl.c @@ -454,6 +454,10 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags) static int inited = 0; + if (flags & BDRV_O_RDWR) { + return -ENOTSUP; + } + opts = qemu_opts_create_nofail(&runtime_opts); qemu_opts_absorb_qdict(opts, options, &local_err); if (error_is_set(&local_err)) {