|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/1] libxl: use qemu-xen with PV guests by default
Stefano Stabellini writes ("[PATCH 1/1] libxl: use qemu-xen with PV guests by
default"):
> qemu-xen offers better disk performances than qemu-xen-traditional
> because it supports Linux native AIO: use it for PV guests if it is
> available.
...
> + rc = stat(dm, &buf);
> + /* qemu-xen unavailable, use qemu-xen-traditional */
Firstly, why not use access(2) rather than stat(2) ?
Secondly you ignore the errno value. errnos other than ENOENT (or
perhaps ENOTDIR) should perhaps cause us to bomb out, and in any case
the errno value should be logged.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |