# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 3cde4433ecdac12dee23132a47435b6af0b9dc30
# Parent c8279f7c14e248363a495388e35225dfc43909af
Update xenstore python bindings for "Implement watching of nodes which don't
exist."
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>
diff -r c8279f7c14e2 -r 3cde4433ecda tools/python/xen/lowlevel/xs/xs.c
--- a/tools/python/xen/lowlevel/xs/xs.c Tue Aug 2 19:08:28 2005
+++ b/tools/python/xen/lowlevel/xs/xs.c Tue Aug 2 19:19:16 2005
@@ -254,11 +254,11 @@
val = PyList_New(perms_n);
for (i = 0; i < perms_n; i++, perms++) {
PyObject *p = Py_BuildValue("{s:i,s:i,s:i,s:i,s:i}",
- "dom", perms->id,
- "read", (perms->perms & XS_PERM_READ),
- "write", (perms->perms & XS_PERM_WRITE),
- "create", (perms->perms & XS_PERM_CREATE),
- "owner", (perms->perms & XS_PERM_OWNER));
+ "dom", perms->id,
+ "read", (perms->perms & XS_PERM_READ),
+ "write", (perms->perms & XS_PERM_WRITE),
+ "exist", (perms->perms &
XS_PERM_ENOENT_OK),
+ "owner", (perms->perms & XS_PERM_OWNER));
PyList_SetItem(val, i, p);
}
exit:
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|