xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Xen scripts rewrite
@ 2012-03-01 12:38 Mark
  2012-03-01 13:29 ` Mark van Dijk
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mark @ 2012-03-01 12:38 UTC (permalink / raw)
  To: xen-devel

Greetings,

I am trying to wrap my head around the xen scripts in /etc/xen/scripts.
I am currently looking at locking.sh but I don't really understand what
it is doing.

I see that claim_lock has a while loop, it seems to wait until it can
write its own PID to $lockdir/owner. If the file $lockdir/owner exists,
check if the pid is still running. If it's still running when the
loop is done, steal the lock by writing $$ to $lockdir/owner anyway.

Anyway. Can someone please further explain this file in plain English
and detail. Am I right with my above assumptions, and when are locks
even used?

As said, I request as much detail as possible - the rewrite is to
improve efficiency, readability and user customisation. As it is now
you have too much functions that confuse me silly.

If I am succesful I will share the outcome, so there's an incentive if
you need one.

Thank you,
Mark

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-02 19:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-01 12:38 Xen scripts rewrite Mark
2012-03-01 13:29 ` Mark van Dijk
2012-03-02 19:47   ` Ian Campbell
2012-03-01 13:35 ` Marek Marczykowski
2012-03-01 17:32   ` Mark
2012-03-01 17:50     ` Marek Marczykowski
2012-03-02 13:30 ` Roger Pau Monné

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).