diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-04-28 20:49:23 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-04-28 20:49:23 +0000 |
commit | 7c35359cbf4eaa1d808a1ebb3647fe65fcc9dc60 (patch) | |
tree | 17e89e53759a9df00e29dcc3a0e9c0ee976c43e0 /block-dmg.c | |
parent | d37282add1de687bc596dac20b4f58f5394547e1 (diff) | |
download | qemu-7c35359cbf4eaa1d808a1ebb3647fe65fcc9dc60.zip qemu-7c35359cbf4eaa1d808a1ebb3647fe65fcc9dc60.tar.gz qemu-7c35359cbf4eaa1d808a1ebb3647fe65fcc9dc60.tar.bz2 |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/block-dmg.c b/block-dmg.c index 582e3cb..5df7235 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) |