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

Re: [libvirt] [PATCH] util: reduce syscalls for virGetDeviceID



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

Jirka


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