summaryrefslogtreecommitdiffstats
path: root/python/guestfs.py
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-06-30 11:17:06 +0100
committerRichard W.M. Jones <rjones@redhat.com>2009-06-30 13:10:44 +0100
commitf68b3ac861ae607a333211c775dded82ae2b2c4a (patch)
tree03dfee58ccfd723bcbc9dc6c6d7270629ae4489d /python/guestfs.py
parent3d15f7e652340777514ff30c3cfc560a90b612ec (diff)
downloadlibguestfs-f68b3ac861ae607a333211c775dded82ae2b2c4a.tar.gz
libguestfs-f68b3ac861ae607a333211c775dded82ae2b2c4a.tar.xz
libguestfs-f68b3ac861ae607a333211c775dded82ae2b2c4a.zip
Generated code for 'set_memsize'/'get_memsize' calls.
Diffstat (limited to 'python/guestfs.py')
-rw-r--r--python/guestfs.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/python/guestfs.py b/python/guestfs.py
index aa3572bf..d334a910 100644
--- a/python/guestfs.py
+++ b/python/guestfs.py
@@ -415,6 +415,33 @@ class GuestFS:
"""
return libguestfsmod.end_busy (self._o)
+ def set_memsize (self, memsize):
+ u"""This sets the memory size in megabytes allocated to the
+ qemu subprocess. This only has any effect if called
+ before "g.launch".
+
+ You can also change this by setting the environment
+ variable "LIBGUESTFS_MEMSIZE" before the handle is
+ created.
+
+ For more information on the architecture of libguestfs,
+ see guestfs(3).
+ """
+ return libguestfsmod.set_memsize (self._o, memsize)
+
+ def get_memsize (self):
+ u"""This gets the memory size in megabytes allocated to the
+ qemu subprocess.
+
+ If "g.set_memsize" was not called on this handle, and if
+ "LIBGUESTFS_MEMSIZE" was not set, then this returns the
+ compiled-in default value for memsize.
+
+ For more information on the architecture of libguestfs,
+ see guestfs(3).
+ """
+ return libguestfsmod.get_memsize (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