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).
Showing
想要评论请 注册 或 登录