direct-io.hg

diff tools/ioemu/xenstore.c @ 15481:538c3d8aa4b1

Revert 15471:7ac7f147241405af83e7a9d748cf7b01279734fc

Block-device specifiers in ioemu can contain colons, so skipping
always past the first colon is not a good idea. Better solutions are
in the pipeline to solve the blktap issues.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Jul 06 15:01:20 2007 +0100 (2007-07-06)
parents 7ac7f1472414
children
line diff
     1.1 --- a/tools/ioemu/xenstore.c	Fri Jul 06 14:45:02 2007 +0100
     1.2 +++ b/tools/ioemu/xenstore.c	Fri Jul 06 15:01:20 2007 +0100
     1.3 @@ -173,12 +173,10 @@ void xenstore_parse_domain_config(int do
     1.4          }
     1.5          /* open device now if media present */
     1.6          if (params[0]) {
     1.7 -            char *p = strchr(params, ':');
     1.8 -            p = p ? p+1 : params; /* skip colon separator if present */
     1.9              if (bdrv_open(bs_table[hd_index + (is_scsi ? MAX_DISKS : 0)],
    1.10 -                          p, 0 /* snapshot */) < 0)
    1.11 +                          params, 0 /* snapshot */) < 0)
    1.12                  fprintf(stderr, "qemu: could not open hard disk image '%s'\n",
    1.13 -                        p);
    1.14 +                        params);
    1.15          }
    1.16      }
    1.17