[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.2-testing] ioemu: prefix phy devices with /dev/
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1206524129 0 # Node ID 1f103b46927ee5635bd2c707eb3d7db3ba516e08 # Parent d92cea61cd7a962aaa814490b1bb9d9f8693779e 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> xen-unstable changeset: 17282:0868396712b5c881bde59e7e4c6122805a32cd01 xen-unstable date: Tue Mar 25 10:24:45 2008 +0000 --- tools/ioemu/xenstore.c | 7 +++++++ 1 files changed, 7 insertions(+) diff -r d92cea61cd7a -r 1f103b46927e tools/ioemu/xenstore.c --- a/tools/ioemu/xenstore.c Wed Mar 26 09:35:04 2008 +0000 +++ b/tools/ioemu/xenstore.c Wed Mar 26 09:35:29 2008 +0000 @@ -184,6 +184,13 @@ void xenstore_parse_domain_config(int do 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |