[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.2-testing] ioemu: Force floppy disk images to be interpreted as raw.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1211988705 -3600
# Node ID a38f0a4f501dee3a38a5f8767a64a8fc5865acd4
# Parent  6d81a6f6cb2107cc8a3d0cf834ced28a5052619d
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>
xen-unstable changeset:   17736:6b28a18a8c2d22993adbf35fa66712661118dede
xen-unstable date:        Tue May 27 11:51:33 2008 +0100
---
 tools/ioemu/vl.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -r 6d81a6f6cb21 -r a38f0a4f501d tools/ioemu/vl.c
--- a/tools/ioemu/vl.c  Wed May 28 16:30:45 2008 +0100
+++ b/tools/ioemu/vl.c  Wed May 28 16:31:45 2008 +0100
@@ -7754,8 +7754,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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.