From: Keir Fraser Date: Tue, 27 May 2008 10:51:33 +0000 (+0100) Subject: ioemu: Force floppy disk images to be interpreted as raw. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14207^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=530f24f8b14918387a19ae4a7015734a3c18e4d6;p=xen.git ioemu: Force floppy disk images to be interpreted as raw. Fixes specifying fda/fdb image names in domain configs. Signed-off-by: Keir Fraser --- diff --git a/tools/ioemu/vl.c b/tools/ioemu/vl.c index 76fa9acf6d..c4fe055389 100644 --- a/tools/ioemu/vl.c +++ b/tools/ioemu/vl.c @@ -7807,8 +7807,9 @@ int main(int argc, char **argv) bdrv_set_type_hint(fd_table[i], BDRV_TYPE_FLOPPY); } if (fd_filename[i] != '\0') { - if (bdrv_open(fd_table[i], fd_filename[i], - snapshot ? BDRV_O_SNAPSHOT : 0) < 0) { + if (bdrv_open2(fd_table[i], fd_filename[i], + snapshot ? BDRV_O_SNAPSHOT : 0, + &bdrv_raw) < 0) { fprintf(stderr, "qemu: could not open floppy disk image '%s'\n", fd_filename[i]); exit(1);