# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1211885493 -3600
# Node ID 6b28a18a8c2d22993adbf35fa66712661118dede
# Parent 634fe9f86d62e3e4dc416f64b4ade6b31b0926e7
ioemu: Force floppy disk images to be interpreted as raw.
Fixes specifying fda/fdb image names in domain configs.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
tools/ioemu/vl.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff -r 634fe9f86d62 -r 6b28a18a8c2d tools/ioemu/vl.c
--- a/tools/ioemu/vl.c Tue May 27 11:50:43 2008 +0100
+++ b/tools/ioemu/vl.c Tue May 27 11:51:33 2008 +0100
@@ -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);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|