ioemu: prefix phy devices with /dev/
PATCH 1/1 ioemu: prefix phy devices with /dev/
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 <[email protected]>
tools/ioemu/xenstore.c +7 -0
@@ -188,6 +188,13 @@ void xenstore_parse_domain_config(int hvcontinue ;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; }/*