diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-07-06 15:01:20 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-07-06 15:01:20 +0100 |
commit | 8d374ca1d1c9c2c454503d70bbc66fd8f219f71f (patch) | |
tree | 3aca8912e549d17c8cecc21e03b3a3107ecb72c9 /tools | |
parent | 49562f12854a29a1fb99433bdcd11fa796ce1267 (diff) | |
download | xen-8d374ca1d1c9c2c454503d70bbc66fd8f219f71f.tar.gz xen-8d374ca1d1c9c2c454503d70bbc66fd8f219f71f.tar.bz2 xen-8d374ca1d1c9c2c454503d70bbc66fd8f219f71f.zip |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ioemu/xenstore.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/ioemu/xenstore.c b/tools/ioemu/xenstore.c index d711bba7b1..ddadcb6a0f 100644 --- a/tools/ioemu/xenstore.c +++ b/tools/ioemu/xenstore.c @@ -173,12 +173,10 @@ void xenstore_parse_domain_config(int domid) } /* open device now if media present */ if (params[0]) { - char *p = strchr(params, ':'); - p = p ? p+1 : params; /* skip colon separator if present */ if (bdrv_open(bs_table[hd_index + (is_scsi ? MAX_DISKS : 0)], - p, 0 /* snapshot */) < 0) + params, 0 /* snapshot */) < 0) fprintf(stderr, "qemu: could not open hard disk image '%s'\n", - p); + params); } } |