]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: Use access instead of stat
authorOsier Yang <jyang@redhat.com>
Mon, 7 Jan 2013 17:05:30 +0000 (01:05 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 25 Mar 2013 12:46:05 +0000 (20:46 +0800)
commitd91f7dec466bb086900165b86b2e2ac5bcef67f5
tree43911e7804fe4f7b7e070cc54ef4cf196835fdb3
parent244ce462e29f6414a357b2aaff686e8b8c98ae24
nodedev: Use access instead of stat

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