提交 7c35359c 编写于 作者: B bellard

raw dmg support


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1424 c046a42c-6fe2-441c-8c8c-71466251a162
上级 d37282ad
...@@ -91,7 +91,9 @@ static int dmg_open(BlockDriverState *bs, const char *filename) ...@@ -91,7 +91,9 @@ static int dmg_open(BlockDriverState *bs, const char *filename)
if(lseek(s->fd,-0x1d8,SEEK_END)<0) { if(lseek(s->fd,-0x1d8,SEEK_END)<0) {
dmg_close: dmg_close:
close(s->fd); 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); info_begin=read_off(s->fd);
if(info_begin==0) if(info_begin==0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册