[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] DomU suspension/hibernation
Ian,
On Tue, Jun 18, 2013 at 7:29 PM, Ian Murray <murrayie@xxxxxxxxxxx> wrote:
Thanks for the information. I decided to have another look over xendomains on xen-4.2.2 this evening, as I decided I wanted it to work. There were a few interesting things broken in there - for example, I can't see how the zombie testing code would work as neither formats of "xl list -l" give the state (and I couldn't see how it would be trying to get that, even if it were) I managed to patch it so it was working for me. I rewrote most of the functions which had been using "xl list -l" to use "xenstore-list /local/domain" instead (which pulls a list of all the domain ids) and then replaced the call to parseln with a shell call to "xenstore-read /local/domain/$id/name". The one instance I didn't change that in was the all_zombies function, which I just returned 0 since it would never be working right now anyway. I've attached a patch in case anyone else wants to see what I did, or make use of it. The other part of it, that i'm not completely happy with, is the assumption that xm == sxp and xl == json. I'm tempted to rewrite that part so that I capture the results to a variable, test for the presence of '"name":' then parse the variable through either sed (if sxp) or perl (if json - perl is being used as sed didn't appear to have good support for the non-greedy regex modifier). Regards, David Attachment:
xendomains.patch _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |