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

Eric Blake eblake at redhat.com
Wed Jul 13 14:38:42 UTC 2011


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 at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110713/540ec79b/attachment-0001.sig>


More information about the libvir-list mailing list