documentation of xs.transaction_end is inconsistent with the implementation
Hi list,
The documentation of ``xs.transaction_end`` (from xen.lowlevel xs) doesn’t mention that the method accepts transaction handle
#define xspy_transaction_end_doc "\n" \ "End the current transaction.\n" \ "Attempts to commit the transaction unless abort is true.\n" \ " abort [int]: abort flag (default 0).\n" \ "\n" \ "Returns True on success, False if you need to try again.\n" \ "Raises xen.lowlevel.xs.Error on error.\n" \ "\n"
while the implementation clearly expects it [*]
int abort = 0;
char *thstr;
if (!PyArg_ParseTupleAndKeywords(args, kwds, arg_spec, kwd_spec,
&thstr, &abort))
return NULL;Regards,
Sergei
[*]: http://xenbits.xen.org/gitweb/?p=xen.git;a=blob_plain;f=tools/python/xen/lowlevel/xs/xs.c;hb=HEAD
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
The same is true of ``xs.mkdir``.
#define xspy_mkdir_doc "\n" \ "Make a directory.\n" \ " path [string]: path to directory to create.\n" \ "\n" \ "Returns None on success.\n" \ "Raises xen.lowlevel.xs.Error on error.\n" \ "\n"
Sergei
Quoted 25 lines · Sergei Lebedev
Hi list,
The documentation of ``xs.transaction_end`` (from xen.lowlevel xs) doesn’t mention that the method accepts transaction handle
#define xspy_transaction_end_doc "\n" \ "End the current transaction.\n" \ "Attempts to commit the transaction unless abort is true.\n" \ " abort [int]: abort flag (default 0).\n" \ "\n" \ "Returns True on success, False if you need to try again.\n" \ "Raises xen.lowlevel.xs.Error on error.\n" \ "\n"while the implementation clearly expects it [*]
int abort = 0; char *thstr;if (!PyArg_ParseTupleAndKeywords(args, kwds, arg_spec, kwd_spec, &thstr, &abort)) return NULL;
Quoted 4 lines
Regards,
Sergei[*]: http://xenbits.xen.org/gitweb/?p=xen.git;a=blob_plain;f=tools/python/xen/lowlevel/xs/xs.c;hb=HEAD
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel