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

Re: [Xen-devel] [PATCH] libxl: prevent xl from running if xend is running.



Roger Pau Monne writes ("[Xen-devel] [PATCH] libxl: prevent xl from running if 
xend is running."):
> Prevent xl from doing any operation if xend daemon is running. That prevents
> bugs that happened when xl and xend raced to close a domain.

Can we somehow limit this to commands that actually change things ?
Having xl as a diagnostic tool even for xend-based systems is useful.

> +        if (!access(locks[i], F_OK) && !force_execution) {
> +            fprintf(stderr, "xend is running, which prevents xl from working 
> "
> +                            "correctly. If you still want to force the "
> +                            "execution of xl please use the -f option\n");
> +            exit(2);
> +        }

If access fails with an unexpected error code (EACCES? EIO?) this will
blunder on.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.