Re: [PATCH] util: reduce syscalls for virGetDeviceID

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

 



On 01/10/2013 02:05 AM, Jiri Denemark wrote:
> On Wed, Jan 09, 2013 at 16:34:54 -0700, Eric Blake wrote:
>> There's no need to do lots of readlink() calls to canonicalize
>> a name if we're only going to use stat() on it, since stat()
>> already chases symlinks.
>>
>> * src/util/virutil.c (virGetDeviceID): Let stat() do the symlink
>> chasing.
>> ---
>>  src/util/virutil.c | 15 +++------------
>>  1 file changed, 3 insertions(+), 12 deletions(-)
> 
> ACK

Thanks; pushed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
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]