diff options
author | Naphtali Sprei | 2010-01-21 13:40:39 +0100 |
---|---|---|
committer | Anthony Liguori | 2010-01-26 22:42:01 +0100 |
commit | 058fc8c768f81f9140db511171185dc8e0676163 (patch) | |
tree | 2638db9a159c0b89d15882bfa43606fc1f6e75cc /block/vvfat.c | |
parent | No need anymoe for bdrv_set_read_only (diff) | |
download | qemu-058fc8c768f81f9140db511171185dc8e0676163.tar.gz qemu-058fc8c768f81f9140db511171185dc8e0676163.tar.xz qemu-058fc8c768f81f9140db511171185dc8e0676163.zip |
Ask for read-write permissions when opening files
Found some places that seems needs this explicitly, now that
read-write is not the default.
Signed-off-by: Naphtali Sprei <nsprei@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block/vvfat.c')
-rw-r--r-- | block/vvfat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/vvfat.c b/block/vvfat.c index df957e5ff8..d2787b9e76 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -2792,7 +2792,7 @@ static int enable_write_target(BDRVVVFATState *s) if (bdrv_create(bdrv_qcow, s->qcow_filename, options) < 0) return -1; s->qcow = bdrv_new(""); - if (s->qcow == NULL || bdrv_open(s->qcow, s->qcow_filename, 0) < 0) + if (s->qcow == NULL || bdrv_open(s->qcow, s->qcow_filename, BDRV_O_RDWR) < 0) return -1; #ifndef _WIN32 |