Re: [libvirt] [PATCH] unify popen/fopen qemu wrappers

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

 



On 08/13/2009 01:18 PM, Daniel Veillard wrote:
On Tue, Aug 11, 2009 at 06:30:36PM +0200, Paolo Bonzini wrote:
While reading Chris's code for fd migration I noticed the duplication
between QEMUFilePopen and QEMUFileStdio.  This fixes it, and makes
qemu_fopen more similar qemu_fdopen.

   Looks fine to me, but what led to the initial duplication ?

Of course, this patch was sent to the wrong list, but besides that it looks just like an historical artifact. The qemu_fopen interface was the original one and dates back to even before QEMUFile grew function pointers for get/put/close operations. qemu_popen probably did not reuse the struct because it could not reuse the function pointers.

Paolo

--
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]