util: reduce syscalls for virGetDeviceID
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.
Showing
想要评论请 注册 或 登录