[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 11/11] block/curl.c: Refuse to open the handle fo
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH v5 11/11] block/curl.c: Refuse to open the handle for writes. |
Date: |
Thu, 23 May 2013 11:38:09 +0800 |
From: "Richard W.M. Jones" <address@hidden>
Signed-off-by: Richard W.M. Jones <address@hidden>
Signed-off-by: Fam Zheng <address@hidden>
---
block/curl.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/block/curl.c b/block/curl.c
index b6cc5a0..4499445 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)) {
--
1.8.2.3
- [Qemu-devel] [PATCH v5 07/11] curl: make use of CURLDataCache., (continued)
- [Qemu-devel] [PATCH v5 08/11] curl: use list to store CURLState, Fam Zheng, 2013/05/22
- [Qemu-devel] [PATCH v5 09/11] curl: add cache quota., Fam Zheng, 2013/05/22
- [Qemu-devel] [PATCH v5 10/11] curl: introduce ssl_no_cert runtime option., Fam Zheng, 2013/05/22
- [Qemu-devel] [PATCH v5 11/11] block/curl.c: Refuse to open the handle for writes.,
Fam Zheng <=
- Re: [Qemu-devel] [PATCH v5 00/11] curl: fix curl read, Richard W.M. Jones, 2013/05/23
- Re: [Qemu-devel] [PATCH v5 00/11] curl: fix curl read, Stefan Hajnoczi, 2013/05/23