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

Re: [libvirt] [PATCH 4/9] nodedev: Use access instead of stat



On 14.01.2013 15:34, Osier Yang wrote:
> The use of 'stat' in nodeDeviceVportCreateDelete is only to check
> if the file exists or not, it's a bit overkill, and safe to replace
> with the wrapper of access(2) (virFileExists).
> ---
>  src/node_device/node_device_driver.c |    6 ++----
>  1 files changed, 2 insertions(+), 4 deletions(-)
> 

ACK

Michal


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