| Submitter | Kevin Wolf |
|---|---|
| Date | Sept. 21, 2010, 3:21 p.m. |
| Message ID | <1285082522-24407-2-git-send-email-kwolf@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/65313/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/block/vvfat.c b/block/vvfat.c index 365332a..5898d66 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -2665,6 +2665,11 @@ static int vvfat_write(BlockDriverState *bs, int64_t sector_num, DLOG(checkpoint()); + /* Check if we're operating in read-only mode */ + if (s->qcow == NULL) { + return -EACCES; + } + vvfat_close_current_file(s); /*