|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2] Only call stat() when adding a disk if we expect a device to exist.
On 26/04/13 11:55, Ian Campbell wrote: On Wed, 2013-04-24 at 12:56 +0100, Ian Campbell wrote:On Tue, 2013-04-23 at 15:08 +0100, Roger Pau Monne wrote:On 23/04/13 11:59, David Scott wrote: Thanks (and sorry!)Looking at the code again, is it because bypassing the stat() in the UNKNOWN case where in fact it is a block device, leaves a.stab uninitialised which then confuses
if (libxl__try_phy_backend(a->stab.st_mode))
return backend;
in disk_try_backend?
Perhaps a better patch would do the stat() anyway and only worry about
the failure if (disk->backend = ... PHY && disk->backend_domid = ... etc)
Cheers, Dave _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |