|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] ioemu: prefix phy devices with /dev/
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1206440685 0
# Node ID 0868396712b5c881bde59e7e4c6122805a32cd01
# Parent 4a4860ced89725f08798153f659c9714adb87734
ioemu: prefix phy devices with /dev/
just like blkif.py's _parse_uname does for PV guests. Closes bug #983.
Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
---
tools/ioemu/xenstore.c | 7 +++++++
1 files changed, 7 insertions(+)
diff -r 4a4860ced897 -r 0868396712b5 tools/ioemu/xenstore.c
--- a/tools/ioemu/xenstore.c Tue Mar 25 10:24:26 2008 +0000
+++ b/tools/ioemu/xenstore.c Tue Mar 25 10:24:45 2008 +0000
@@ -188,6 +188,13 @@ void xenstore_parse_domain_config(int hv
continue ;
memmove(params, offset+1, strlen(offset+1)+1 );
fprintf(logfile, "Strip off blktap sub-type prefix to %s\n",
params);
+ }
+ /* Prefix with /dev/ if needed */
+ if (!strcmp(drv, "phy") && params[0] != '/') {
+ char *newparams = malloc(5 + strlen(params) + 1);
+ sprintf(newparams, "/dev/%s", params);
+ free(params);
+ params = newparams;
}
/*
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] ioemu: prefix phy devices with /dev/,
Xen patchbot-unstable <=
|
|
|
|
|