ia64/xen-unstable

changeset 5998:3cde4433ecda

Update xenstore python bindings for "Implement watching of nodes which don't exist."
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Tue Aug 02 19:19:16 2005 +0000 (2005-08-02)
parents c8279f7c14e2
children 0d69d2ce73e9 1032271a0abf
files tools/python/xen/lowlevel/xs/xs.c
line diff
     1.1 --- a/tools/python/xen/lowlevel/xs/xs.c	Tue Aug 02 19:08:28 2005 +0000
     1.2 +++ b/tools/python/xen/lowlevel/xs/xs.c	Tue Aug 02 19:19:16 2005 +0000
     1.3 @@ -254,11 +254,11 @@ static PyObject *xspy_get_permissions(Py
     1.4      val = PyList_New(perms_n);
     1.5      for (i = 0; i < perms_n; i++, perms++) {
     1.6          PyObject *p = Py_BuildValue("{s:i,s:i,s:i,s:i,s:i}",
     1.7 -                                    "dom",    perms->id,
     1.8 -                                    "read",   (perms->perms & XS_PERM_READ),
     1.9 -                                    "write",  (perms->perms & XS_PERM_WRITE),
    1.10 -                                    "create", (perms->perms & XS_PERM_CREATE),
    1.11 -                                    "owner",  (perms->perms & XS_PERM_OWNER));
    1.12 +                                    "dom",   perms->id,
    1.13 +                                    "read",  (perms->perms & XS_PERM_READ),
    1.14 +                                    "write", (perms->perms & XS_PERM_WRITE),
    1.15 +                                    "exist", (perms->perms & XS_PERM_ENOENT_OK),
    1.16 +                                    "owner", (perms->perms & XS_PERM_OWNER));
    1.17          PyList_SetItem(val, i, p);
    1.18      }
    1.19   exit: