* [PATCH] ioemu: prefix phy devices with /dev/
@ 2008-03-24 14:45 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2008-03-24 14:45 UTC (permalink / raw)
To: xen-devel
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@eu.citrix.com>
diff -r 87c17a6c540c tools/ioemu/xenstore.c
--- a/tools/ioemu/xenstore.c Fri Mar 21 10:06:06 2008 +0000
+++ b/tools/ioemu/xenstore.c Mon Mar 24 14:42:09 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;
}
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-24 14:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-24 14:45 [PATCH] ioemu: prefix phy devices with /dev/ Samuel Thibault
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.