* [Qemu-devel] [PATCH 3/3] Disable fall-back to read-only when cannot open drive's file for read-write
@ 2010-01-14 14:33 Naphtali Sprei
0 siblings, 0 replies; only message in thread
From: Naphtali Sprei @ 2010-01-14 14:33 UTC (permalink / raw)
To: qemu-devel
Signed-off-by: Naphtali Sprei <nsprei@redhat.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-14 14:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-14 14:33 [Qemu-devel] [PATCH 3/3] Disable fall-back to read-only when cannot open drive's file for read-write Naphtali Sprei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).