diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/dmg.c | 2 | ||||
-rw-r--r-- | block/raw-posix.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/block/dmg.c b/block/dmg.c index 262560ffd3..dd98af4376 100644 --- a/block/dmg.c +++ b/block/dmg.c @@ -94,7 +94,7 @@ dmg_close: close(s->fd); /* open raw instead */ bs->drv=bdrv_find_format("raw"); - return bs->drv->bdrv_open(bs, filename, flags); + return bdrv_open3(bs, filename, flags, bs->drv); } info_begin=read_off(s->fd); if(info_begin==0) diff --git a/block/raw-posix.c b/block/raw-posix.c index fa1a39462a..31b68ff813 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -892,6 +892,7 @@ static BlockDriver bdrv_raw = { .bdrv_getlength = raw_getlength, .create_options = raw_create_options, + .protocol_name = "file", }; /***********************************************/ |