Re: [libvirt] [libvirt[]PATCH v2] Fix URI alias prefix matching

2011-11-01 Thread lvroyce
On 2011?11?01? 15:12, Philipp Hahn wrote: Now you have it the other way around, that any prefix matches: "virsh -c hai" will match "hail". Why not simply use STREQ instead of STREQLEN? Sincerely Philipp ooops..You're right.But here I think we can't use STREQ because in config file the com

Re: [libvirt] [libvirt[]PATCH v2] Fix URI alias prefix matching

2011-11-01 Thread Philipp Hahn
Hello Wen, On Tuesday 01 November 2011 04:08:24 Wen Ruo Lv wrote: > With /etc/libvirt/libvirt.conf below: > uri_aliases = [ > "hail=qemu:///system", > "sleet=qemu+ssh://root 9 115 122 57/system", > "sam=qemu+unix:///system?socket=/var/run/libvirt/libvirt-sock", > ] > Issue "virsh -c hailly"

[libvirt] [libvirt[]PATCH v2] Fix URI alias prefix matching

2011-10-31 Thread Wen Ruo Lv
With /etc/libvirt/libvirt.conf below: uri_aliases = [ "hail=qemu:///system", "sleet=qemu+ssh://root 9 115 122 57/system", "sam=qemu+unix:///system?socket=/var/run/libvirt/libvirt-sock", ] Issue "virsh -c hailly" results in matching "hail=qemu:///system" Fix URI alias prefix matching when con