[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/3] Disable fall-back to read-only when cannot open
From: |
Naphtali Sprei |
Subject: |
[Qemu-devel] [PATCH 3/3] Disable fall-back to read-only when cannot open drive's file for read-write |
Date: |
Thu, 14 Jan 2010 16:33:26 +0200 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
Signed-off-by: Naphtali Sprei <address@hidden>
---
block.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/block.c b/block.c
index cbd72cc..0b4b9ad 100644
--- a/block.c
+++ b/block.c
@@ -457,10 +457,6 @@ int bdrv_open2(BlockDriverState *bs, const char *filename,
int flags,
ret = -ENOTSUP;
} else {
ret = drv->bdrv_open(bs, filename, open_flags);
- if ((ret == -EACCES || ret == -EPERM) && !(flags & BDRV_O_FILE)) {
- ret = drv->bdrv_open(bs, filename, open_flags & ~BDRV_O_RDWR);
- bs->read_only = 1;
- }
}
if (ret < 0) {
qemu_free(bs->opaque);
--
1.6.3.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH 3/3] Disable fall-back to read-only when cannot open drive's file for read-write,
Naphtali Sprei <=