All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Wray <mike.wray@hp.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: xen-devel@lists.xensource.com
Subject: Re: Xen Store Release
Date: Fri, 13 May 2005 13:03:40 +0100	[thread overview]
Message-ID: <4284979C.9080703@hp.com> (raw)
In-Reply-To: <1115985395.20470.25.camel@localhost.localdomain>

Rusty Russell wrote:
> OK, a new version of the Xen Store daemon is up:
> 
> 	rsync -av ozlabs.org::rusty/xenstore .
> 
> This version has the first cut of an xs_introduce_domain() call for
> tools to tell the daemon about new domains: the transport is a pair of
> simple ringbuffers within a shared page, and an event channel for change
> notifications.  There's no xs_disconnect_domain() yet, but it's fairly
> trivial to implement.
> 
> The code has been tested in userspace: next step is to change the tools
> to actually make the call (Mike and Anthony) and create a XenBus layer
> to make it easy for drivers to talk to the Xen daemon (my next task).

I've just written a Python module wrapping the xs client interface
and checked it in to CVS on gandalf.

I added a library target to xenstore for the Python module to link,
and made it possible to configure the paths it uses from the env.

The module is called 'xen.xs' and lives in xspy in CVS top-level for now.

BTW, using it I came across this slightly weird behaviour:

 >>> import xen.xs
 >>> h = xen.xs.open()
 >>> h.write("/foo", "hello", create=1)
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
RuntimeError: (21, 'Is a directory')
 >>> h.ls("/")
['./', '../', 'foo/', '.perms', 'foo.perms']

Write to /foo failed beacuse it's a dir - expected.
But listing / showed  foo as expected, plus
'./', '../', '.perms', 'foo.perms'.

The daemon should probably filter out '.', '..' and its internal
'.perms' files from the results.

 >>> h.get("/.perms")
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
AttributeError: get
 >>> h.get("/foo.perms")
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
AttributeError: get

> 
> Feedback welcome!
> Rusty.

Mike

  reply	other threads:[~2005-05-13 12:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-13 11:56 Xen Store Release Rusty Russell
2005-05-13 12:03 ` Mike Wray [this message]
2005-05-15  1:25   ` Rusty Russell
2005-05-16  8:00     ` Mike Wray
2005-05-13 12:59 ` Mike Wray
2005-05-13 17:33   ` Daniel Stekloff
2005-05-13 18:31     ` Mike Wray
2005-05-13 18:38       ` Mike Wray

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4284979C.9080703@hp.com \
    --to=mike.wray@hp.com \
    --cc=rusty@rustcorp.com.au \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.