From ca49c50e06834bbc68e21630a5552c57494f2b53 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 18 May 2009 20:22:53 +0100 Subject: Generated code for lvresize, resize2fs. --- python/guestfs.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'python/guestfs.py') 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) + -- cgit