ia64/xen-unstable

changeset 17740:6b28a18a8c2d

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@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 27 11:51:33 2008 +0100 (2008-05-27)
parents 634fe9f86d62
children c93a913c221f
files tools/ioemu/vl.c
line diff
     1.1 --- a/tools/ioemu/vl.c	Tue May 27 11:50:43 2008 +0100
     1.2 +++ b/tools/ioemu/vl.c	Tue May 27 11:51:33 2008 +0100
     1.3 @@ -7807,8 +7807,9 @@ int main(int argc, char **argv)
     1.4                  bdrv_set_type_hint(fd_table[i], BDRV_TYPE_FLOPPY);
     1.5              }
     1.6              if (fd_filename[i] != '\0') {
     1.7 -                if (bdrv_open(fd_table[i], fd_filename[i],
     1.8 -                              snapshot ? BDRV_O_SNAPSHOT : 0) < 0) {
     1.9 +                if (bdrv_open2(fd_table[i], fd_filename[i],
    1.10 +                               snapshot ? BDRV_O_SNAPSHOT : 0,
    1.11 +                               &bdrv_raw) < 0) {
    1.12                      fprintf(stderr, "qemu: could not open floppy disk image '%s'\n",
    1.13                              fd_filename[i]);
    1.14                      exit(1);