summaryrefslogtreecommitdiffstats
path: root/python/guestfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/guestfs.py')
-rw-r--r--python/guestfs.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/python/guestfs.py b/python/guestfs.py
index 4a2804b4..77c29895 100644
--- a/python/guestfs.py
+++ b/python/guestfs.py
@@ -1423,3 +1423,16 @@ class GuestFS:
"""
return libguestfsmod.vg_activate (self._o, activate, volgroups)
+ def lvresize (self, device, mbytes):
+ u"""This resizes (expands or shrinks) an existing LVM
+ logical volume to "mbytes". When reducing, data in the
+ reduced part is lost.
+ """
+ return libguestfsmod.lvresize (self._o, device, mbytes)
+
+ def resize2fs (self, device):
+ u"""This resizes an ext2 or ext3 filesystem to match the
+ size of the underlying device.
+ """
+ return libguestfsmod.resize2fs (self._o, device)
+