aboutsummaryrefslogtreecommitdiff
path: root/block-dmg.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-28 20:49:23 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-28 20:49:23 +0000
commit7c35359cbf4eaa1d808a1ebb3647fe65fcc9dc60 (patch)
tree17e89e53759a9df00e29dcc3a0e9c0ee976c43e0 /block-dmg.c
parentd37282add1de687bc596dac20b4f58f5394547e1 (diff)
raw dmg support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1424 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-dmg.c')
-rw-r--r--block-dmg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/block-dmg.c b/block-dmg.c
index 582e3cb2f0..5df7235436 100644
--- a/block-dmg.c
+++ b/block-dmg.c
@@ -91,7 +91,9 @@ static int dmg_open(BlockDriverState *bs, const char *filename)
if(lseek(s->fd,-0x1d8,SEEK_END)<0) {
dmg_close:
close(s->fd);
- return -1;
+ /* open raw instead */
+ bs->drv=&bdrv_raw;
+ return bs->drv->bdrv_open(bs,filename);
}
info_begin=read_off(s->fd);
if(info_begin==0)