Hi Jim,<div>Thank 's your patch!</div><div><br></div><div>After applying the V2 patch, guestVM with tap2 driver-name in xml can be created and works well!!</div><div><div><br></div><div>    <disk type='file' device='disk'></div>
<div>      <driver name='tap2' type='vhd'/></div><div>      <source file='/root/tapdisk/vhd-f12-2'/></div><div>      <target dev='hda' bus='ide'/></div><div>    </disk></div>
<div><br></div><div><br></div><div>But dumpxml to the corresponding guestVM still get driver name='tap'</div><div><div>    <disk type='file' device='disk'></div><div>      <driver name='tap' type='vhd'/></div>
<div>      <source file='/root/tapdisk/vhd-f12-2'/></div><div>      <target dev='hda' bus='ide'/></div><div>    </disk></div></div><div><br></div><div><br></div><div>I am trying to chase the variable   "def->driverName" located in </div>
<div>src/domain_conf.c:5452:  virBufferVSprintf(buf, " name='%s'", def->driverName);</div><div>to find out why dumpxml still get wrong name</div><div><br></div><div>Any hints will be very helpful for me </div>
<div>Thank you very much!</div><div><br></div><div>Regards,</div><div>Ben</div><div><br></div><div><br></div><br><div class="gmail_quote">2010/8/25 Jim Fehlig <span dir="ltr"><<a href="mailto:jfehlig@novell.com">jfehlig@novell.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">benian wrote:<br>
> Hi Jim,<br>
> Thanks for your reply!<br>
><br>
> I use xm create to create a tap2 disk and it works well<br>
><br>
> disk = [ 'tap2:vhd:/root/tapdisk/vhd-f12,hda,w']<br>
><br>
><br>
> but virsh dumpxml can't get anything about the disk<br>
><br>
><br>
> After i apply the patch, i can catch <disk> information by virsh dumpxml<br>
> but it seems that it only recognize "tap" only but not tap2<br>
><br>
> <disk type='file' device='disk'><br>
>       <driver name='tap' type='vhd'/><br>
>       <source file='/root/tapdisk/vhd-f12'/><br>
>       <target dev='hda' bus='ide'/><br>
> </disk><br>
><br>
> Afterwards i try to use this xml file to virsh create VM  and  no<br>
> active disk is found.<br>
<br>
</div>Opps, I forgot to account for tap2 in functions that generate sexpr.  V2<br>
attached.<br>
<br>
Regards,<br>
<font color="#888888">Jim<br>
<br>
</font></blockquote></div><br></div>