Re: Patch: driver->open functions return declined or error status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2007-02-28 at 16:18 +0000, Richard W.M. Jones wrote:
> +             case VIR_DRV_OPEN_ERROR: goto failed;
> +             case VIR_DRV_OPEN_DECLINED:
> +               /*
> +                * For a default connect to Xen make sure we manage to contact
> +                * all related drivers.
> +                */
> +               if (for_xen &&
> +                   strncasecmp(virDriverTab[i]->name, "xen", 3) == 0 &&
> +                   virDriverTab[i]->no != VIR_DRV_XEN_PROXY)
> +                 goto failed;
> +               break; 

	Are there no current cases where we should return VIR_DRV_OPEN_ERROR?

	Also, can we change the existing open methods to use DECLINED? I was
confused for a minute because I presumed ERROR was -1 ...

Cheers,
Mark.


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]