diff options
author | Richard Jones <rjones@redhat.com> | 2009-05-18 20:22:53 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-05-18 20:22:53 +0100 |
commit | ca49c50e06834bbc68e21630a5552c57494f2b53 (patch) | |
tree | 0d1c98fd038abf05d7491f044c8affbfb461ce00 /python/guestfs.py | |
parent | 0695593702b8612b500ff0b3bf800e5934f9b56e (diff) | |
download | libguestfs-ca49c50e06834bbc68e21630a5552c57494f2b53.tar.gz libguestfs-ca49c50e06834bbc68e21630a5552c57494f2b53.tar.xz libguestfs-ca49c50e06834bbc68e21630a5552c57494f2b53.zip |
Generated code for lvresize, resize2fs.
Diffstat (limited to 'python/guestfs.py')
-rw-r--r-- | python/guestfs.py | 13 |
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) + |