summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-05-08 15:20:36 +0100
committerRichard Jones <rjones@redhat.com>2009-05-08 15:20:36 +0100
commit15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed (patch)
treecf462fcc7f390c56be66ba6fb72fbfd79ccbc598 /python
parent77c3f9d0ed25218fc3f24cee083a2083157d8e0a (diff)
downloadlibguestfs-15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed.tar.gz
libguestfs-15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed.tar.xz
libguestfs-15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed.zip
Generated code to support last 3 commits.
Diffstat (limited to 'python')
-rw-r--r--python/guestfs-py.c25
-rw-r--r--python/guestfs.py9
2 files changed, 34 insertions, 0 deletions
diff --git a/python/guestfs-py.c b/python/guestfs-py.c
index efc57920..11ea6a45 100644
--- a/python/guestfs-py.c
+++ b/python/guestfs-py.c
@@ -892,6 +892,30 @@ py_guestfs_set_ready (PyObject *self, PyObject *args)
}
static PyObject *
+py_guestfs_end_busy (PyObject *self, PyObject *args)
+{
+ PyObject *py_g;
+ guestfs_h *g;
+ PyObject *py_r;
+ int r;
+
+ if (!PyArg_ParseTuple (args, (char *) "O:guestfs_end_busy",
+ &py_g))
+ return NULL;
+ g = get_handle (py_g);
+
+ r = guestfs_end_busy (g);
+ if (r == -1) {
+ PyErr_SetString (PyExc_RuntimeError, guestfs_last_error (g));
+ return NULL;
+ }
+
+ Py_INCREF (Py_None);
+ py_r = Py_None;
+ return py_r;
+}
+
+static PyObject *
py_guestfs_mount (PyObject *self, PyObject *args)
{
PyObject *py_g;
@@ -3354,6 +3378,7 @@ static PyMethodDef methods[] = {
{ (char *) "get_state", py_guestfs_get_state, METH_VARARGS, NULL },
{ (char *) "set_busy", py_guestfs_set_busy, METH_VARARGS, NULL },
{ (char *) "set_ready", py_guestfs_set_ready, METH_VARARGS, NULL },
+ { (char *) "end_busy", py_guestfs_end_busy, METH_VARARGS, NULL },
{ (char *) "mount", py_guestfs_mount, METH_VARARGS, NULL },
{ (char *) "sync", py_guestfs_sync, METH_VARARGS, NULL },
{ (char *) "touch", py_guestfs_touch, METH_VARARGS, NULL },
diff --git a/python/guestfs.py b/python/guestfs.py
index 9cf9d881..678e298e 100644
--- a/python/guestfs.py
+++ b/python/guestfs.py
@@ -279,6 +279,15 @@ class GuestFS:
"""
return libguestfsmod.set_ready (self._o)
+ def end_busy (self):
+ u"""This sets the state to "READY", or if in "CONFIG" then
+ it leaves the state as is. This is only used when
+ implementing actions using the low-level API.
+
+ For more information on states, see guestfs(3).
+ """
+ return libguestfsmod.end_busy (self._o)
+
def mount (self, device, mountpoint):
u"""Mount a guest disk at a position in the filesystem.
Block devices are named "/dev/sda", "/dev/sdb" and so