Re: [PATCH] util: Avoid duplicating virFileOpenAsNoFork in virFileOpenAs

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

 



On 07/13/2011 08:08 AM, Jiri Denemark wrote:
> In 2f4d2496a88055a8343b3efca618522da8715d92 I didn't notice that one
> part of virFileOpenAs doesn't actually call to virFileOpenAsNoFork but
> rather includes a copy of the code from there.
> ---
>  src/util/util.c |   35 +++++------------------------------
>  1 files changed, 5 insertions(+), 30 deletions(-)

That duplication has been around longer than your change to avoid fchown
(in fact, it was around even before I started tweaking things in commit
055d4ff8 to use SCM_RIGHTS, back when it was named
virFileOperationNoFork), but this is indeed a nice reduction in code size.

ACK.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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