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

Michal Privoznik mprivozn at redhat.com
Mon Jan 14 19:41:58 UTC 2013


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




More information about the libvir-list mailing list