Re: [libvirt] [PATCH]: Fix "virsh attach-disk" and "virsh attach-interface"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel P. Berrange wrote:
> 
> Ok, I've found the original xenDaemonAttachDevice() had this hack to make
> them consistent:
> 
>     if (!memcmp(sexpr, "(device ", 8)) {
>         conf = sexpr + 8;
>         *(conf + strlen(conf) -1) = 0; /* suppress final ) */
>     }
>     else
>         conf = sexpr;
> 
> Which is just gross. 

Ah, ug, that is gross.  Thanks for checking it out for me; I've committed this
patch now.

Chris Lalancette

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]